if (!ProtocolConstants.HANDSHAKE_TYPE.equalsIgnoreCase(message.getMessageType())) {
logger.error("Incorrect server handshaking.");
return false;
}
localServer = new Server(new KillGradleServerProtocol());
localServer.start();
client.sendMessage(ProtocolConstants.HANDSHAKE_TYPE, ProtocolConstants.HANDSHAKE_CLIENT, localServer.getPort());
return true;