provider = (FsProvider) model.getProvider(bus);
} catch (ClassCastException e) {
throw new ConfigurationException("Invalid bus config [" + listener.getBusidref() + "]. Should be contained within a <fs-provider> instance. Unexpected exception - this should have caused a validation error!");
}
FsMessageFilter messageFilter = listener.getFsMessageFilter();
if(messageFilter == null) {
messageFilter = bus.getFsMessageFilter();
if(messageFilter == null) {
throw new ConfigurationException("No <fs-detination> defined on either <fs-listener> [" + listener.getName() + "] or <fs-bus> [" + bus.getBusid() + "].");
}