private void verifyConfigProperties ( ConfigProperties newProperties ) throws InvalidConfigurationException { if ( doTraceLogs ) { logger . trace ( "verifyConfigProperties( newProperties = " + newProperties + " )" ) ; } // merge properties for ( ConfigProperties . Property configProperty : configProperties . getProperties ( ) ) { if ( newProperties . getProperty ( configProperty . getName ( ) ) == null ) { newProperties . addProperty ( configProperty ) ; } } // validate result for ( ConfigProperties . Property entityProperty : newProperties . getProperties ( ) ) { if ( entityProperty . getValue ( ) == null ) { throw new InvalidConfigurationException ( "the property " + entityProperty . getName ( ) + " has null value" ) ; } } // validate in ra object object . raVerifyConfiguration ( newProperties ) ; // ok, switch config configProperties = newProperties ; }
Merges the current properties values with the new ones and uses the ra to verify the configuration