private SqlSessionFactory createSqlSessionFactory(@Nonnull final DataSource dataSource) {
final TransactionFactory transactionFactory = new JdbcTransactionFactory();
final Environment environment = new Environment("main", transactionFactory, dataSource);
final Configuration configuration = new Configuration(environment);
// .. добавление mapper-ов
// configuration.addMapper(mapperClass);
return new SqlSessionFactoryBuilder().build(configuration);
}