public Configuration customizeConfiguration(Configuration config) throws ParserConfigurationException, SAXException, IOException, TransformerException {
Configuration configuration = new Configuration();
configuration.setProperty("show_sql", "false");
configuration.setProperty("cglib.use_reflection_optimizer", "true");
configuration.addClass(FormRow.class);
PersistentClass pc = configuration.getClassMapping("FormRow");
Property custom = pc.getProperty(FormUtil.PROPERTY_CUSTOM_PROPERTIES);
Component customComponent = (Component) custom.getValue();
// get existing mapping file