@Override public void saveLegacyPortletConfiguration(final PortletConfiguration portletConfiguration) { notNull("portletConfiguration", portletConfiguration); //check the PC exists! final Long id = portletConfiguration.getId(); final PortletConfiguration pc = portletConfigurationManager.getByPortletId(id); if (pc != null) { portletConfigurationManager.store(portletConfiguration); } else { throw new IllegalStateException("Trying to update portletConfiguration that doesn't exist with id '" + id + "'."); } }
portletConfigurationManager.store(portletConfiguration); log.info("Finished upgrading. (" + portlet.getKey() + ")");