class MessageBusUtil {

	public List<Message> messageQuery(String publisher, String receiver, long from, long to) {
		LoggingService.logDebug(MODULE_NAME, "Starting message query");
		Route route = messageBus.getRoutes().get(publisher); 
		if (to < from || route == null || !route.getReceivers().contains(receiver))
			return null;

		MessagePublisher messagePublisher = messageBus.getPublisher(publisher);
		if (messagePublisher == null)
			return null;
		LoggingService.logDebug(MODULE_NAME, "Finishing message query");
		return messagePublisher.messageQuery(from, to);
	}

	public  MessageBusUtil();

}