HTTPContext httpContext = pmd.getContext(HTTPContext.class);
if (httpContext != null) {
return httpContext.getHost();
}
RMIContext rmiContext = pmd.getContext(RMIContext.class);
if (rmiContext != null) {
return rmiContext.getIp();
}
JMXContext jmxContext = pmd.getContext(JMXContext.class);
if (jmxContext != null) {
try {