}
}
protected void setBeanValue(FactoryURL fUrl, String[] paramValues, boolean firstTime) throws LookupException {
ComponentsTree componentsTree = Application.lookup().getGlobalFactory().getTree();
Component component = componentsTree.getComponent(fUrl.getComponentName());
if (component == null) {
log.error("Cannot write to component " + fUrl.getComponentName() + " as it doesn't exist.");
} else {
if (firstTime) {
Object o = component.getObject();
if (o instanceof HandlerFactoryElement) {
((HandlerFactoryElement) o).clearFieldErrors();
}
}
try {
component.setProperty(fUrl.getPropertyName(), paramValues);
}
catch (Exception e) {
Object o = component.getObject();
if (o instanceof HandlerFactoryElement) {
((HandlerFactoryElement) o).addFieldError(fUrl, e, paramValues);
} else {
log.warn("Error setting value to " + fUrl + " is ignored.");
}