* Opens a connection to the service and identifies itself using the id.
*/
private OpenedSocket openConnectionAndIdentify(UUID id) throws IOException {
OpenedSocket clientSocket = openClientConnection();
Writer writer = clientSocket.writer();
writer.write(gson.toJson(new StartupAnnounceMessage(id)));
writer.write('\n');
writer.flush();
return clientSocket;
}