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 ) ; }
Returns first item from the list