/** * This method checks if the model is properly initialized and i.e. not * closed. */ protected void assertModel() { if(this.getUnderlyingModelImplementation() == null) { throw new ModelRuntimeException("Underlying model is null."); } if(!isOpen()) throw new ModelRuntimeException("Model is not open"); }
/** * This method checks if the model is properly initialized and i.e. not * closed. */ protected void assertModel() { if (this.getUnderlyingModelImplementation() == null) { throw new ModelRuntimeException("Underlying model is null."); } if (!isOpen()) throw new ModelRuntimeException("Model is not open"); }