refactored Collection.getInstance
Merge pull request #1 from mkuklis/get_instance_refactoring

refactored Collection.getInstance