/** * Ensures that the portlet container is initialized. * @throws IllegalStateException if the container is not initialized. */ private void ensureInitialized() throws IllegalStateException { if (!isInitialized()) { throw new IllegalStateException( "Portlet container [" + name + "] is not initialized."); } }