public static File locateReplicatorHomeDir(){
  if (replicatorHomeDir == null) {
    String replicatorHome=System.getProperty(HOME_DIR);
    if (replicatorHome == null)     replicatorHome=System.getProperty("user.dir");
    replicatorHomeDir=new File(replicatorHome);
    if (!replicatorHomeDir.isDirectory()) {
      throw new ServerRuntimeException("Replicator home does not exist or is invalid: " + replicatorHomeDir);
    }
  }
  return replicatorHomeDir;
}

public static File locateReplicatorHomeDir ( ) { if ( replicatorHomeDir == null ) { String replicatorHome = System . getProperty ( HOME_DIR ) ; if ( replicatorHome == null ) replicatorHome = System . getProperty ( "user.dir" ) ; replicatorHomeDir = new File ( replicatorHome ) ; if ( ! replicatorHomeDir . isDirectory ( ) ) { throw new ServerRuntimeException ( "Replicator home does not exist or is invalid: " + replicatorHomeDir ) ; } } return replicatorHomeDir ; }
find and return the replicator home directory .
