public static Map<String,DLockService> snapshotAllServices(){
  Map snapshot=null;
synchronized (services) {
    snapshot=new HashMap(services);
  }
  return snapshot;
}

public static Map < String , DLockService > snapshotAllServices ( ) { Map snapshot = null ; synchronized ( services ) { snapshot = new HashMap ( services ) ; } return snapshot ; }
return a snapshot of all services
