public static File locateReplicatorConfDir(){
  if (replicatorConfDir == null) {
    String replicatorConf=System.getProperty(CONF_DIR);
    if (replicatorConf == null)     replicatorConfDir=new File(locateReplicatorHomeDir(),"conf");
 else     replicatorConfDir=new File(replicatorConf);
    if (!replicatorConfDir.isDirectory()) {
      throw new ServerRuntimeException("Replicator conf directory does not exist or is invalid: " + replicatorConfDir);
    }
  }
  return replicatorConfDir;
}

public static File locateReplicatorConfDir ( ) { if ( replicatorConfDir == null ) { String replicatorConf = System . getProperty ( CONF_DIR ) ; if ( replicatorConf == null ) replicatorConfDir = new File ( locateReplicatorHomeDir ( ) , "conf" ) ; else replicatorConfDir = new File ( replicatorConf ) ; if ( ! replicatorConfDir . isDirectory ( ) ) { throw new ServerRuntimeException ( "Replicator conf directory does not exist or is invalid: " + replicatorConfDir ) ; } } return replicatorConfDir ; }
locate and return the replicator conf director .
