class UserStore {

    public User findById(int id) {
        User result = null;
        try (Connection con = CON.getConnect();
        PreparedStatement st = con.prepareStatement(QUERIES.getProperty("findUserById"))) {
            st.setInt(1, id);
            try (ResultSet rstSet = st.executeQuery()) {
                if (rstSet.next()) {
                    result = createUserByRstSet(rstSet);
                }
            }
        } catch (SQLException e) {
            LOG.error(e.getMessage(), e);
        }
        return result;
    }

}