implemented creation of generic collection (Java is crazy, but Guava is
the savior!)