code: private IntuitMessage getFirst(List<IntuitMessage> intuitMessages) throws FMSException {
          if(intuitMessages.isEmpty()) {
              throw new FMSException("IntuitMessages list is empty. Nothing to upload.");
          }
          return intuitMessages.get(0);
      }
docs: Returns first item from the list
  @param intuitMessages
  @return IntuitMessage
  @throws FMSException