* The request to handle.
* @param response
* The response to update.
*/
public void handle(Request request, Response response) {
Protocol protocol = request.getProtocol();
if (protocol == null) {
throw new UnsupportedOperationException(
"Unable to determine the protocol to use for this call.");
} else {
// Add the application in request and response attributes
request.getAttributes().put(Application.KEY,
this.applicationContext.getApplication());
response.getAttributes().put(Application.KEY,
this.applicationContext.getApplication());
if (protocol.equals(Protocol.WAR)) {
this.applicationContext.getWarClient()
.handle(request, response);
} else {
if (!this.applicationContext.getApplication()
.getConnectorService().getClientProtocols().contains(