public boolean serveRequest(ServerMessage message, Connection sourceConnection) {
    switch (message.getMessageType()) {
    case LOGIN:
      return login((LoginMessage) message, sourceConnection);
    case LOGOUT:
      return logout((LogoutMessage) message);
    default:
      return false;
    }
  }