class MessageBusUtil {

	public List<Message> getMessages(String receiver) {
		LoggingService.logDebug(MODULE_NAME, "Starting get message");
		List<Message> messages = new ArrayList<>();
		MessageReceiver rec = messageBus.getReceiver(receiver); 
		if (rec != null) {
			try {
				messages = rec.getMessages();
			} catch (Exception e) {
				LoggingService.logError(MODULE_NAME, "unable to receive messages : Message Receiver (" + receiver + ")",
						new AgentSystemException(e.getMessage(), e));
			}
		}
		LoggingService.logDebug(MODULE_NAME, "Finishing get message");
		return messages;
	}

	public  MessageBusUtil();

}