DeployRequest request = (DeployRequest) o;
DeployResponse response = protocol.deployOperation(request);
this.sendMessage(response);
} else if (o instanceof LogFilesRequest) {
LogFilesRequest request = (LogFilesRequest) o;
LogFilesResponse response = protocol.collectLogFilesOperation(request);
this.sendMessage(response);
} else if (Constants.EXIT_REQUEST.equals(o)) {
this.shutdown();
} else {
throw new CommunicationException("Invalid request");