protected static Boolean tryLock(String serviceName,Object name,Long wait){
  DLockService service=DLockService.getInternalServiceNamed(serviceName);
  boolean locked=service.lock(name,wait.longValue(),-1,true);
  return Boolean.valueOf(locked);
}

protected static Boolean tryLock ( String serviceName , Object name , Long wait ) { DLockService service = DLockService . getInternalServiceNamed ( serviceName ) ; boolean locked = service . lock ( name , wait . longValue ( ) , - 1 , true ) ; return Boolean . valueOf ( locked ) ; }
accessed via reflection . do not remove
