DbDialect dialect = createDialect();
NamedParameterJdbcTemplate jdbcTemplate = new NamedParameterJdbcTemplate(getDataSource());
SessionFactory hibernateSessionFactory = createHibernateSessionFactory(dialect);
HibernateTemplate hibernateTemplate = createHibernateTemplate(hibernateSessionFactory);
TransactionTemplate transactionTemplate = createTransactionTemplate(hibernateSessionFactory);
DbConnector dbConnector = new DbConnector(getName(), dialect, getDataSource(), jdbcTemplate, hibernateTemplate, transactionTemplate);
ComponentInfo info = new ComponentInfo(DbConnector.class, getClassifier());
repo.registerComponent(info, dbConnector);
return dbConnector;
}