public void registerService(Class<?> serviceType, Object service) {
registrations.put(serviceType, service);
}
protected Object createCLRElement(IRenderingContext context, Element element, Map<String, Object> options) {
IVisualElementLoader loader = findElementLoader(element);
if (loader != null) {
return loader.createCLRElement(element, options);
}
loader = createElementLoader(context, element);
Object visualObject = loader.createCLRElement(element, options);
removeElementLoader(element);
return visualObject;
}