}
} else {
// We get the broker service
AssemblerBrokerService ab =
(AssemblerBrokerService)TurbineServices.getInstance()
.getService (AssemblerBrokerService.SERVICE_NAME);
try {
// Attempt to load the presentation style
prm = (ParameterPresentationStyle)ab.getAssembler("parameter", provider);
if (prm == null) {
if (verbosity > 0 && Log.getLogger().isDebugEnabled()) {
Log.debug("ParameterLoader: Registering the factory");
}
ab.registerFactory("parameter", new ParameterPresentationStyleFactory());
prm = (ParameterPresentationStyle)ab.getAssembler("parameter", provider);
}
if (verbosity > 0 && Log.getLogger().isDebugEnabled()) {
Log.debug("ParameterLoader: Loaded parameter: "+provider+", prm="+prm);
}
} catch (ClassCastException cce) {