code: protected static final SIMessageHandle[] getMessageHandles(
              final List messageList) {
  
          final String methodName = "getMessageIds";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(TRACE, methodName, messageList);
          }
  
          final SIMessageHandle[] msgHandles = new SIMessageHandle[messageList
                  .size()];
          for (int i = 0; i < messageList.size(); i++) {
              SIBusMessage message = (SIBusMessage) messageList.get(i);
              msgHandles[i] = message.getMessageHandle();
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(TRACE, methodName, msgHandles);
          }
          return msgHandles;
  
      }
docs: Returns an array of message handles for the given list of messages.
  
  @param messageList
  the list of messages
  @return an array of message handles