extract GetLocker method