private JdbcDataMapperConfig createMapperConfig(InternalHandler internalHandler) {
        Map<String, SqlConfig> sqlConfigs = new HashMap<String, SqlConfig>();
        for ( String key : internalHandler.sqlQueries.keySet() ) {
            StringBuilder sqlQuery = internalHandler.sqlQueries.get(key);
            Map<String, String> attrMap = internalHandler.sqlAttrs.get(key);
            String normalizedSqlQuery = StringUtil.normalize(sqlQuery.toString());
            SqlConfig sqlConfig = new SqlConfig(attrMap.get("id"), attrMap, normalizedSqlQuery);
            sqlConfigs.put(sqlConfig.getId(), sqlConfig);
        }

        Properties properties = PropertiesUtil.loadFromString(internalHandler.globalConfig.toString());
        Map<String, Object> globalConfig = new HashMap<String, Object>();
        for ( Object key : properties.keySet() ) {
            Object value = properties.get(key);
            globalConfig.put(key.toString(), value);
        }

        return new JdbcDataMapperConfig(globalConfig, sqlConfigs);
    }