public PullPoint(EndpointReferenceType pullPoint, JBIContainer container) throws JBIException, JAXBException {
super(pullPoint, createJaxbClient(container));
}
public List<NotificationMessageHolderType> getMessages(int max) throws JBIException {
GetMessages getMessages = new GetMessages();
getMessages.setMaximumNumber(BigInteger.valueOf(max));
GetMessagesResponse response = (GetMessagesResponse) request(getMessages);
return response.getNotificationMessage();
}