protected static boolean checkNamesOfProperties ( Properties props ) { Set < String > names = getAllOptionNames ( Config . class ) ; for ( Object key : props . keySet ( ) ) { if ( ! ( key instanceof String ) || ! names . contains ( key ) ) { return false ; } } return true ; }
Checks if properties have correct names . A property has a correct name if it is one of the configuration options .