private void config() throws BuildException {
// Create Source Generator with appropriate type factory
if (types != null) {
try {
FieldInfoFactory factory = new FieldInfoFactory(types);
sgen = new CastorSourceGenerator(factory);
} catch (Exception e) {
try {
sgen = new CastorSourceGenerator((FieldInfoFactory) Class.forName(types).newInstance());
} catch (Exception e2) {