if (entry.getKey().isAssignableFrom(visualComponent.getClass()))
renderer= ServiceLocator.getInstance().getReflectionService().createClassInstance(entry.getValue());
}
if (renderer != null)
return renderer.render(visualComponent);
else
return new HTMLLabelRenderer().render(new VisualLabelImpl("l1", "no renderer!!"));
}
public static <A extends VisualComponent> void addRenderFor(Class<A> componentClass, Class<? extends ComponentRenderer<Element, ? extends A>> rendererClass)