if ((hostName != null) && (hostName.length() > 1) &&
(hostName.charAt(0) == '$') && (hostName.charAt(1) == '{') &&
(hostName.charAt(hostName.length() - 1) == '}')) {
String hostVar = hostName.substring(2, hostName.length() - 1);
// resolve hostName since it is a token from system-property
PropertyResolver propResolver = null;
try {
propResolver = new PropertyResolver(_configCtx, _serverRef.getRef());
} catch (ConfigException ce) {
// ignore this exception
}
if (propResolver != null) {
hostName = propResolver.getPropertyValue(hostVar);
}
}
else {
address = InetAddress.getByName(hostName);
if (address.isAnyLocalAddress())