public void processRequest(ObjectInputStream in, ObjectOutputStream out) throws IOException {
ClusterRequest req = new ClusterRequest();
ClusterResponse res = new ClusterResponse();
try {
req.readExternal(in);
} catch (IOException e) {
res.setFailure(e);
sendErrorResponse("Cannot read ClusterRequest", e, res, out);
throw e;
} catch (ClassNotFoundException e) {