Method method = getMethods.get( "CONFIGSETTINGSPATHS" ); //$NON-NLS-1$
Set<String> settingsPaths = (Set<String>) method.invoke( pojo, new Object[] {} );
Iterator<String> keys = settingsPaths.iterator();
Map<String, String> settings = new HashMap<String, String>();
SystemSettingsParameterProvider params = new SystemSettingsParameterProvider();
while ( keys.hasNext() ) {
String path = keys.next();
String value = params.getStringParameter( path, null );
if ( value != null ) {
settings.put( path, value );
}
}
configureMethod.invoke( pojo, new Object[] { settings } );