element = (AWBindable)elementClass.newInstance();
element = (AWBindable)element.determineInstance(componentName, elementClass.getName(),
newBindingsHashtable, templateName(), lineNumber());
}
catch (IllegalAccessException illegalAccessException) {
throw new AWGenericException(illegalAccessException);
}
catch (InstantiationException instantiationException) {
String errorMessage = Fmt.S("Problem creating new instance of \"%s\" (%s) templateName: \"%s\" lineNumber: %s",
componentName, elementClass.getName(),
templateName(), String.valueOf(lineNumber()));
throw new AWGenericException(errorMessage, instantiationException);
}
}
return element;
}