/**
   * (non-Javadoc)
   *
   * @see FermatEventHandler#handleEvent(FermatEvent)
   * @param platformEvent
   * @throws Exception
   */
  @Override
  public void handleEvent(FermatEvent platformEvent) throws FermatException {

    if (platformEvent.getSource() == AssetTransmissionNetworkServicePluginRoot.EVENT_SOURCE) {

      System.out.println(
          "CompleteComponentConnectionRequestNotificationEventHandler - handleEvent platformEvent ="
              + platformEvent.toString());
      System.out.print("NOTIFICACION EVENTO MENSAJE RECIVIDO!!!!");

      /*
       * Get the message receive
       */
      NewNetworkServiceMessageReceivedNotificationEvent
          newNetworkServiceMessageReceivedNotificationEvent =
              (NewNetworkServiceMessageReceivedNotificationEvent) platformEvent;
      FermatMessage fermatMessageReceive =
          (FermatMessage) newNetworkServiceMessageReceivedNotificationEvent.getData();

      /*
       * Get the content of the message like a JsonObject
       */
      JsonObject jsonMsjContent = parser.parse(fermatMessageReceive.getContent()).getAsJsonObject();

      /*
       * Extract the type of content of the message
       */
      DigitalAssetMetadataTransactionType digitalAssetMetadataTransactionType =
          gson.fromJson(
              jsonMsjContent.get(AssetTransmissionJsonAttNames.MSJ_CONTENT_TYPE),
              DigitalAssetMetadataTransactionType.class);

      /*
       * Process the messages for his type
       */
      if (messagesProcessorsRegistered.containsKey(digitalAssetMetadataTransactionType)) {
        messagesProcessorsRegistered
            .get(digitalAssetMetadataTransactionType)
            .processingMessage(fermatMessageReceive, jsonMsjContent);
      } else {
        System.out.println(
            "CompleteComponentConnectionRequestNotificationEventHandler - message type no supported = "
                + digitalAssetMetadataTransactionType);
      }
    }
  }
  /**
   * (non-Javadoc)
   *
   * @see FermatEventHandler#handleEvent(FermatEvent)
   * @param platformEvent
   * @throws Exception
   */
  @Override
  public void handleEvent(FermatEvent platformEvent) throws FermatException {

    System.out.println(
        "CompleteComponentConnectionRequestNotificationEventHandler - handleEvent platformEvent ="
            + platformEvent.toString());

    // System.out.print("NOTIFICACION EVENTO LLEGADA MENSAJE!!!!");

    //        if (this.cryptoTransmissionAgent.isRunning()) {
    //
    //            NewNetworkServiceMessageReceivedNotificationEvent
    // newNetworkServiceMessageSentNotificationEvent =
    // (NewNetworkServiceMessageReceivedNotificationEvent) platformEvent;
    //
    //
    // cryptoTransmissionAgent.handleNewMessages((FermatMessage)newNetworkServiceMessageSentNotificationEvent.getData());
    //
    //
    //        }
  }