question: public static void validate ( Map < String , String > properties ) throws UnknownPropertyNameException , ConfigurationException { Set < String > unknownPropertyNames = new HashSet < > ( ) ; for ( final String key : properties . keySet ( ) ) { String value = properties . get ( key ) ; if ( ( value . length ( ) > 0 ) && ( ! value . contains ( "%" ) ) ) { try { boolean valid = validateMap ( key ) || validateNumber ( key , value ) || validate ( key , value ) ; } catch ( UnknownPropertyNameException e ) { debug . error ( "Invalid server property {}" , key , e ) ; unknownPropertyNames . add ( key ) ; } } } if ( ! unknownPropertyNames . isEmpty ( ) ) { throw new UnknownPropertyNameException ( "unknown.properties" , new String [ ] { StringUtils . join ( unknownPropertyNames , ", " ) } ) ; } }
target:  Validates a set of server configuration properties.