code: @SuppressWarnings("rawtypes")
  	public static Object instantiate(Class<?> type) throws Exception {
  		if (type.isAssignableFrom(ArrayList.class))
  			return new ArrayList();
  		if (type.isAssignableFrom(LinkedList.class))
  			return new LinkedList();
  		if (type.isAssignableFrom(HashSet.class))
  			return new HashSet();
  		if (type.isAssignableFrom(HashMap.class))
  			return new HashMap();
  		return type.newInstance();
  	}
docs: Instantiate the given type.