public static void main ( String [ ] args ) { LOG . info ( "Validating configuration." ) ; try { new InstancedConfiguration ( ConfigurationUtils . defaults ( ) ) . validate ( ) ; LOG . info ( "Configuration is valid." ) ; } catch ( IllegalStateException e ) { LOG . error ( "Configuration is invalid: {}" , e . getMessage ( ) ) ; System . exit ( - 1 ) ; } System . exit ( 0 ) ; }
Console program that validates the configuration .