protected static void assertState(final boolean validState,final String message,final Object... args){
  if (!validState) {
    throw new IllegalStateException(String.format(message,args));
  }
}

protected static void assertState ( final boolean validState , final String message , final Object ... args ) { if ( ! validState ) { throw new IllegalStateException ( String . format ( message , args ) ) ; } }
asserts whether state , based on the evaluation of a conditional expression , passed to this assertion is valid .
