try {
WOHTTPConnection anHTTPConnection = new WOHTTPConnection(configHostName, aPort);
anHTTPConnection.setReceiveTimeout(5000);
if (anHTTPConnection.sendRequest(aRequest)) {
aResponse = anHTTPConnection.readResponse();
}
} catch(Exception localException) {
log.error("Failed to connect to Host: " + configHostName + " and Port: " + aPort);
throw new MonitorException("Failed to connect to Host: " + configHostName + " and Port: " + aPort);
}