{
List<Element> children=getChildrenByTagName(getSingleElementByTagName(docRoot, TAG_RESOLVERS), TAG_RESOLVER);
if(children!=null && !children.isEmpty())
{
ResolverObjectFactory rf = configuration.getResolverObjectFactory();
if(rf == null)
{
rf= createResolverObjectFactoryInstance();
configuration.setResolverObjectFactory(rf);
}
ResolverObjectFactory drf=(ResolverObjectFactory)rf;
for(Element e : children)
{
String id=getAttributeValueIngoreEmpty(e,TAG_RESOLVER_ATTR_ID);
assertNotEmpty(id,"<"+TAG_RESOLVER+"> attribute ["+TAG_RESOLVER_ATTR_ID+"] must not be null");
String clazz=getAttributeValueIngoreEmpty(e,TAG_RESOLVER_ATTR_CLASS);
assertNotEmpty(clazz,"<"+TAG_RESOLVER+"> of id "+SbmUtils.toString(id)+" attribute ["+TAG_RESOLVER_ATTR_CLASS+"] must not be null");
Object resolver=createClassInstance(clazz);
drf.addResolverObject(id,resolver);
}
}
}