/** * Create a container with the given containerName, initialized from the given * servlet config, and using the given container services. * @param containerName the name of the portlet container. * @param requiredServices the required portlet container services. * @return newly created PortletContainer instance. * @throws PortletContainerException */ public PortletContainer createContainer( String containerName, ContainerServices requiredServices) throws PortletContainerException { ArgumentUtility.validateNotNull("requiredServices", requiredServices); ArgumentUtility.validateNotEmpty("containerName", containerName); PortletContainer container = new PortletContainerImpl( containerName, requiredServices); if (LOG.isInfoEnabled()) { LOG.info("Portlet Container [" + containerName + "] created."); } return container; } }