code: private void handleIncomingEvent(final Message message) {
          switch (EventTopic.valueOf(getStringHeaderKey(message, MessageHeaderKey.TOPIC, "EventTopic is null"))) {
          case UPDATE_ACTION_STATUS:
              updateActionStatus(message);
              break;
          case UPDATE_ATTRIBUTES:
              updateAttributes(message);
              break;
          default:
              logAndThrowMessageError(message, "Got event without appropriate topic.");
              break;
          }
  
      }
docs: Method to handle the different topics to an event.
  
  @param message
  the incoming event message.
  @param topic
  the topic of the event.