Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
ObjectModelFactory factory = new XMLWSRPConsumerFactory(this);
if (entityResolver == null)
{
log.debug("Could not obtain entity resolver for XMLConsumerRegistry");
entityResolver = new NullEntityResolver();
}
try
{
unmarshaller.setEntityResolver(entityResolver);
initConsumers((SortedMap<String, WSRPConsumer>)unmarshaller.unmarshal(configurationIS, factory, null));