if (names != null) {
String managerName = names[0]; //todo: handle multiple
String[] containers = PortletManager.getWebContainerNames(actionRequest, managerName); //todo: handle multiple
if (containers != null) {
String containerName = containers[0]; //todo: handle multiple
WebContainer container = PortletManager.getWebContainer(actionRequest, containerName);
String server = getWebServerType(container.getClass());
actionResponse.setRenderParameter("server", server);
if(mode.equals("new")) {
// User selected to add a new connector, need to show criteria portlet
actionResponse.setRenderParameter("mode", "new");
String protocol = actionRequest.getParameter("protocol");