code: private Iterator getValuesIterator(Object value) {
  
          if (value instanceof Collection) {
              return ((Collection) value).iterator();
          } else {
              return (new ArrayIterator(value));
          }
  
      }
docs: --------------------------------------------------------- Private Methods