code: public static Object getFieldInstance(List chids, Field f)
      {
  
          if (Set.class.isAssignableFrom(f.getType()))
          {
              Set col = new HashSet(chids);
              return col;
          }
          return chids;
      }
docs: Gets the field instance.
  
  @param chids
  the chids
  @param f
  the f
  @return the field instance