Class<? extends ConsoleRequest> requestClass = consoleRequests.get(type);
if (requestClass == null) {
throw new RuntimeException("Failed to find a request for requestType:" + type);
}
ConsoleRequest task = requestClass.newInstance();
task.fromJson(getObject(innerRequest, "request"));
processTaskAndSendResponse(taskId, task);
}
if (manCenterConnectionLost) {
logger.info("Connection to management center restored.");
}