if (o == null) { throw new ModelException(E.COMP_O); } if (! ( (o instanceof Group) || (o instanceof Stem) ) ) { throw new ModelException(E.COMP_OC); } if (l == null) { throw new ModelException(E.COMP_L); } if (!(l instanceof Group)) { throw new ModelException(E.COMP_LC); } if (r == null) { throw new ModelException(E.COMP_R); } if (!(r instanceof Group)) { throw new ModelException(E.COMP_RC); } if (l.equals(r)) { throw new ModelException(E.COMP_LR); } if (o.equals(l)) { throw new ModelException(E.COMP_CL); } if (o.equals(r)) { throw new ModelException(E.COMP_CR); } if (c.getType() == null) { throw new ModelException(E.COMP_T); }
_notNull(o, E.COMP_O); _rightOwnerClass(o); _notNull(l, E.COMP_L); _rightFactorClass(l, E.COMP_LC); _notNull(r, E.COMP_R); _rightFactorClass(r, E.COMP_RC); _notCyclic(o, l, r); _notNull(c.getType(), E.COMP_T);
  protected static void validate(Composite c)     throws  ModelException  {    // TODO DRY    GrouperSessionValidator.validate(c.getSession());    Owner o = c.getOwner();    Owner l = c.getLeft();    Owner r = c.getRight();    if (o == null) {      throw new ModelException(E.COMP_O);    }    if (! ( (o instanceof Group) || (o instanceof Stem) ) ) {      throw new ModelException(E.COMP_OC);    }    if (l == null) {      throw new ModelException(E.COMP_L);    }    if (!(l instanceof Group)) {      throw new ModelException(E.COMP_LC);    }    if (r == null) {      throw new ModelException(E.COMP_R);    }    if (!(r instanceof Group)) {      throw new ModelException(E.COMP_RC);    }    if (l.equals(r)) {      throw new ModelException(E.COMP_LR);    }    if (o.equals(l)) {      throw new ModelException(E.COMP_CL);    }    if (o.equals(r)) {      throw new ModelException(E.COMP_CR);    }    if (c.getType() == null) {      throw new ModelException(E.COMP_T);    }  } // protected static void validate(Composite c)