public static String serviceFromConfigFileName(String configFileName){
  String prefx=ReplicationServiceManager.CONFIG_FILE_PREFIX;
  String suffix=ReplicationServiceManager.CONFIG_FILE_SUFFIX;
  if (configFileName.contains(prefx) && configFileName.endsWith(suffix)) {
    int iP=configFileName.indexOf(prefx);
    return configFileName.substring(iP + prefx.length(),configFileName.length() - suffix.length());
  }
 else   return null;
}

public static String serviceFromConfigFileName ( String configFileName ) { String prefx = ReplicationServiceManager . CONFIG_FILE_PREFIX ; String suffix = ReplicationServiceManager . CONFIG_FILE_SUFFIX ; if ( configFileName . contains ( prefx ) && configFileName . endsWith ( suffix ) ) { int iP = configFileName . indexOf ( prefx ) ; return configFileName . substring ( iP + prefx . length ( ) , configFileName . length ( ) - suffix . length ( ) ) ; } else return null ; }
parse out service name from static configuration file name .
