code: public static TupleTypeEnum getInstance(String type) {
          if (type.equals(ITEM.type))
              return ITEM;
          else if (type.equals(ITEM_REFERENCE.type))
              return ITEM_REFERENCE;
          else if (type.equals(ITEM_STREAM.type))
              return ITEM_STREAM;
          else if (type.equals(REFERENCE_STREAM.type))
              return REFERENCE_STREAM;
          else if (type.equals(ROOT.type))
              return ROOT;
          else
              throw new IllegalArgumentException(nls.getFormattedMessage("INVALID_TUPLE_TYPE_SIMS1502",
                                                                         new Object[] {type},
                                                                         null));
      }
docs: Factory method for <code>TupleTypeEnum</code> objects.
  
  @param type the string corresponding to the type of <code>TupleTypeEnum</code> that you want.
  @return a <code>TupleTypeEnum</code> object.