if(isEdit){
if(type.equals("jmx")){
JMXConnectorConfig jmxConfig = config.getAdminServiceConfig().getJMXConnectorConfigMap().get(oName);
sslContainerConfig = (SSLConfigContainer)jmxConfig;
}else if(type.equals("iiop")){
IIOPListenerConfig iiopConfig = config.getIIOPServiceConfig().getIIOPListenerConfigMap().get(oName);
sslContainerConfig = (SSLConfigContainer)iiopConfig;
}else if(type.equals("http")){
HTTPListenerConfig httpConfig = config.getHTTPServiceConfig().getHTTPListenerConfigMap().get(oName);
sslContainerConfig = (SSLConfigContainer)httpConfig;
}else if(type.equals("nodeagent")){
NodeAgentConfig agentConfig = AMXUtil.getDomainConfig().getNodeAgentConfigMap().get(oName);
JMXConnectorConfig jmxConfig = agentConfig.getJMXConnectorConfig();
sslContainerConfig = (SSLConfigContainer)jmxConfig;
}
if((sslContainerConfig != null) && (sslContainerConfig.getSSLConfig() != null)){
sslContainerConfig.removeSSLConfig();
}
}else{
if(type.equals("iiop")){
Map props = (Map) handlerCtx.getFacesContext().getExternalContext().getSessionMap().get("iiopProps");
Map options = AMXUtil.convertToPropertiesOptionMap((Map)props.get("options"), null);
IIOPListenerConfig iiopConfig = config.getIIOPServiceConfig().createIIOPListenerConfig(
(String) props.get("iiopName"),
(String) props.get("address"),
options);
iiopConfig.setPort((String) props.get("port"));
iiopConfig.setEnabled((Boolean)props.get("listener"));
iiopConfig.setSecurityEnabled((Boolean)props.get("security"));
sslContainerConfig = (SSLConfigContainer)iiopConfig;
}else if(type.equals("http")){
Map props = (Map) handlerCtx.getFacesContext().getExternalContext().getSessionMap().get("httpProps");
Map options = AMXUtil.convertToPropertiesOptionMap((Map)props.get("options"), null);
int port = Integer.parseInt((String)props.get("port"));