code: static Iterator getIterator(Object agg) throws JMFSchemaViolationException {
      if (agg instanceof Collection) {
        return ((Collection)agg).iterator();
      }
      else if (agg.getClass().isArray()) {
        return new LiteIterator(agg);
      }
      else {
        throw new JMFSchemaViolationException(agg.getClass().getName());
      }
    }
docs: Get an Iterator over an aggregate that may be either an array or a Collection