public PreparedStatement prepareStatement(String sql, int resultSetType,
                                              int resultSetConcurrency) throws SQLException {
        return new TimedPreparedStatement(connection.prepareStatement(sql, resultSetType, resultSetConcurrency), sql);
    }
Creates a new ProfiledConnection that wraps the specified connection.

@param connection the Connection to wrap and collect stats for.
xmppserver/src/main/java/org/jivesoftware/database/ProfiledConnection.java