loginmodules/password/authenticators/jdbc/src/main/java/org/beiter/michael/authn/jaas/loginmodules/password/authenticators/jdbc/DbUtil.java
public static void close(final ResultSet resultSet) {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
                final String error = "Error closing JDBC result set. This may indicate a resource leak.";
                LOG.warn(error, e);
            }
        }
    }
public static void close(final ResultSet resultSet) {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
                final String error = "Error closing JDBC result set. This may indicate a resource leak.";
                LOG.warn(error, e);
            }
        }
    }
Close a {@code ResultSet} and log any SQLExceptions that occur.

@param resultSet ResultSet to close (may be {@code null})