* @return String port property value represented by the variable
*/
public static String resolveToken(String pn, String configName, String instanceName) {
//For EE, the instance will have its own override System Properties value instead of using the one from config.
if (AMXUtil.isEE()) {
SystemPropertiesAccess sprops = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(instanceName);
if (sprops == null) {
sprops = AMXUtil.getDomainConfig().getClusteredServerConfigMap().get(instanceName);
}
if (sprops != null) {
if (sprops.existsSystemProperty(pn)) {
return sprops.getSystemPropertyValue(pn);
}
}
}
ConfigConfig config = AMXUtil.getConfig(configName);
return config.getSystemPropertyValue(pn);