if (method.getDeclaringClass().equals(PreparedStatement.class))
boolean incorrectState = associatedConnection == null && method.getDeclaringClass().equals(PreparedStatement.class);  if (incorrectState)
    protected void checkCorrectness(Method method) throws SQLException {        String message =  "Statemenet has illegal state because it "+            "does not have any associated connection at this time. " +             "Usually this means that Statement.getConnection() " +             "method was called on a closed statement that currently " +             "lives in a statement pool.";                if (method.getDeclaringClass().equals(PreparedStatement.class))            if (TOLERANT_CHECK_MODE)                throw new SQLException(message);            else                throw new IllegalStateException(message);    }