public Connection createConnection() throws DaoException {
        Connection conn = null;

        try {
            conn = ConnectionFactoryImpl.getInstance().createConnection();
            conn.setAutoCommit(false);
        } catch (SQLException e) {
            String errorMsg = String.format("Cannot create connection to database %s\n%s",
                    JdbcInfo.getInstance().getDbName(),e.getLocalizedMessage());
            logger.error(errorMsg, e);
            throw new DaoException(errorMsg); //TODO возможно переделать
        }

        logger.debug("Connection to database {} created.", JdbcInfo.getInstance().getDbName());

        safeConnectionToLocalThread(conn);

        return conn;
    }