protected ComponentFactory findComponentFactory(final ComponentType componentType, final IModel<?> model) {
return getComponentRegistry().findComponentFactory(componentType, model);
}
protected ComponentFactoryRegistry getComponentRegistry() {
final ComponentFactoryRegistryAccessor cfra = (ComponentFactoryRegistryAccessor) Application.get();
return cfra.getComponentFactoryRegistry();
}