Added method for getting a method from objects generators.