File papConfFile = new File( papConfDir + "/"
+ DEFAULT_PAP_CONFIGURATION_FILE_NAME);
if ( !papConfFile.exists() )
throw new PAPConfigurationException(
"PAP startup configuration file does not exists on path:"
+ papConfFile.getAbsolutePath() );
try {
startupConfiguration = new INIConfiguration( papConfFile );
configuration.addConfiguration( startupConfiguration );
} catch ( org.apache.commons.configuration.ConfigurationException e ) {
logger.error( "Error parsing PAP distribution configuration: "
+ e.getMessage(), e );
throw new PAPConfigurationException(
"Error parsing PAP distribution configuration: "
+ e.getMessage(), e );
}