Support all the Java 6 classes at createSimilarCollection() and createSimilarMap()

Added support of all the Java 6 classes in createSimilarCollection() and createSimilarMap().
Only Java 1.4 classes were supported.