Object loop = context.getAttribute(CHECK_INFINITE_LOOP);
if (loop == null) {
context.setAttribute(CHECK_INFINITE_LOOP, Boolean.TRUE);
} else {
throw new ServiceUnavailableException("reverseUrl is infinite loop.");
}
Socket outsocket = null;
try {
ReverseUrl reverseUrl = serviceUrl.getReverseUrl();
if (reverseUrl == null) {
throw new ServiceUnavailableException("reverseUrl is null.");
}
context.setAttribute("reverseUrl", reverseUrl);
ReverseUtils.setXForwardedFor(request, context);
outsocket = socketFactory.createSocket();