String factoryClass = DEFAULT_FACTORY;
param = config.getParamConfig("factory-class");
if (param != null) {
factoryClass = param.getValue();
}
FormFactory factory = null;
try {
factory = (FormFactory)module.getClassLoader().loadClass(factoryClass).newInstance();
} catch (Exception e) {
throw new ConfigException("Could not create form factory in " + config.toInlineString(), e);
}
factory.init(module);
param = config.getParamConfig("config");
if (param == null) {
throw new ConfigException("Missing parameter 'config' in " + config.toInlineString());
}
FormsSupport support = new FormsSupport(module.getClassLoader(), dataClass);