public static void saveNodeAgentJmxSettings(HandlerContext handlerCtx) {
try{
String ndAgentName = ((String)handlerCtx.getInputValue("NodeAgentName"));
Map <String, NodeAgentConfig> nodeAgentMap = AMXUtil.getDomainConfig().getNodeAgentConfigMap();
NodeAgentConfig agentConfig = nodeAgentMap.get(ndAgentName);
JMXConnectorConfig connectorConfig = agentConfig.getJMXConnectorConfig();
String objName = "com.sun.appserv:type=jmx-connector,node-agent=" + ndAgentName + ",category=config";
JMXUtil.setAttribute(objName, new Attribute("address", handlerCtx.getInputValue("Address")));
JMXUtil.setAttribute(objName, new Attribute("port", handlerCtx.getInputValue("Port")));
JMXUtil.setAttribute(objName, new Attribute("auth-realm-name", handlerCtx.getInputValue("RealmName")));
connectorConfig.setProtocol((String)handlerCtx.getInputValue("JmxProtocol"));
connectorConfig.setAcceptAll((Boolean)handlerCtx.getInputValue("Accept"));
connectorConfig.setSecurityEnabled((Boolean)handlerCtx.getInputValue("security"));
String clientHostname = (String) handlerCtx.getInputValue("clientHostname");
AMXUtil.changeProperty(connectorConfig, "client-hostname", clientHostname);
}catch(Exception ex){
GuiUtil.handleException(handlerCtx, ex);
}