}
String jndiName = (String) handlerCtx.getInputValue("jndiName");
String type = (String) handlerCtx.getInputValue("type");
String resType, factoryClass, description;
if (type.equals("custom")){
CustomResourceConfig customRes = AMXUtil.getDomainConfig().getCustomResourceConfigMap().get(jndiName);
if (customRes == null) {
GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchCustomResource"));
return;
}
resType = customRes.getResType();
factoryClass = customRes.getFactoryClass();
description = customRes.getDescription();
if(AMXUtil.isEE())
handlerCtx.setOutputValue("enabledString", TargetUtil.getEnabledStatus(customRes, false));
else
handlerCtx.setOutputValue("enabled", TargetUtil.isResourceEnabled(customRes, "server" ));
Map<String, String> props = customRes.getProperties();
handlerCtx.setOutputValue("Properties", props);
} else{
JNDIResourceConfig jndiRes = AMXUtil.getDomainConfig().getJNDIResourceConfigMap().get(jndiName);
if (jndiRes == null) {
GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchExternalResource"));