private void assertResourceParser(){
  if (scanner == null) {
    throw new IllegalStateException("Please make sure to setup a ResourceParser before calling this method.");
  }
}

private void assertResourceParser ( ) { if ( scanner == null ) { throw new IllegalStateException ( "Please make sure to setup a ResourceParser before calling this method." ) ; } }
for some of the public methods a resourceparser has to be set .
