code: static SIMessageHandle[] getMessageHandles(final List messages) {
  
          final SIMessageHandle[] messageHandles = new SIMessageHandle[messages
                          .size()];
          for (int i = 0; i < messageHandles.length; i++) {
              final SIBusMessage message = (SIBusMessage) messages.get(i);
              messageHandles[i] = message.getMessageHandle();
          }
          return messageHandles;
  
      }
docs: Converts a list of messages to an array of message handles.
  
  @param messages
  the messages
  @return the array of message handles