private ReplicatorRuntimeConf(String serviceName){
  replicatorHomeDir=locateReplicatorHomeDir();
  replicatorLogDir=locateReplicatorLogDir();
  replicatorConfDir=locateReplicatorConfDir();
  replicatorProperties=new File(locateReplicatorConfDir(),"static-" + serviceName + ".properties");
  if (!replicatorProperties.isFile() || !replicatorProperties.canRead()) {
    throw new ServerRuntimeException("Replicator static properties does not exist or is invalid: " + replicatorProperties);
  }
  replicatorDynamicProperties=new File(replicatorConfDir,"dynamic-" + serviceName + ".properties");
  replicatorDynamicRole=new File(replicatorConfDir,"dynamic-" + serviceName + ".role");
  this.clearDynamicProperties=Boolean.parseBoolean(System.getProperty(CLEAR_DYNAMIC_PROPERTIES));
}

private ReplicatorRuntimeConf ( String serviceName ) { replicatorHomeDir = locateReplicatorHomeDir ( ) ; replicatorLogDir = locateReplicatorLogDir ( ) ; replicatorConfDir = locateReplicatorConfDir ( ) ; replicatorProperties = new File ( locateReplicatorConfDir ( ) , "static-" + serviceName + ".properties" ) ; if ( ! replicatorProperties . isFile ( ) || ! replicatorProperties . canRead ( ) ) { throw new ServerRuntimeException ( "Replicator static properties does not exist or is invalid: " + replicatorProperties ) ; } replicatorDynamicProperties = new File ( replicatorConfDir , "dynamic-" + serviceName + ".properties" ) ; replicatorDynamicRole = new File ( replicatorConfDir , "dynamic-" + serviceName + ".role" ) ; this . clearDynamicProperties = Boolean . parseBoolean ( System . getProperty ( CLEAR_DYNAMIC_PROPERTIES ) ) ; }
creates a new instance .
