Extend the "getRepository" method to accept objects as parameter.

This small change in the method "getRepository" will increase the development speed, since the developer isn't anymore forced to insert the FQNS as a string.
Is this change reasonable?