LOG.error("type invariant violation: " + instance);
LOG.error("type invariant violation: " + c + " for " + instance);
  private void validateTypeInvariants(Object instance) {    assert instance != null;    LOG.debug("getClassContract(): " + getClassContract());    Set invars = getClassContract().getTypeInvariantConditions();    Map context = new HashMap();    context.put(Condition.SUBJECT_KEY, instance);    Iterator iter = invars.iterator();    while (iter.hasNext()) {      Condition c = (Condition)iter.next();      boolean result = c.validate(context);      if (LOG.isErrorEnabled() && (! result)) {        LOG.error("type invariant violation: " + instance);      }      assertTrue(result);    }  }