import java.util.HashMap;\r
import java.util.HashSet;\r
import java.util.IdentityHashMap;\r
+import java.util.List;\r
import java.util.Map;\r
+import java.util.Set;\r
import java.util.UUID;\r
import java.util.concurrent.atomic.AtomicInteger;\r
import java.util.concurrent.atomic.AtomicLong;\r
} else if (clazz == java.util.UUID.class) {\r
COUNTER.getAndIncrement();\r
return (T) UUID.randomUUID();\r
+ } else if (Set.class == clazz) {\r
+ COUNTER.getAndIncrement();\r
+ return (T) new HashSet();\r
+ } else if (List.class == clazz) {\r
+ COUNTER.getAndIncrement();\r
+ return (T) new ArrayList();\r
+ } else if (Map.class == clazz) {\r
+ COUNTER.getAndIncrement();\r
+ return (T) new HashMap();\r
}\r
try {\r
return clazz.newInstance();\r