type = attribute.getType();
}
PropertyEditor editor = PropertyEditors.findEditor(type, classLoader);
if (editor == null) {
throw new DeploymentException("Unable to find PropertyEditor for " + type);
}
editor.setAsText(text);
Object value = editor.getValue();
gbean.setAttribute(name, value);
} catch (ClassNotFoundException e) {
throw new DeploymentException("Unable to find PropertyEditor for " + type, e);
} catch (Exception e) {
throw new DeploymentException("Unable to set attribute " + name + " to " + text, e);
}
}