added a method getObj(..)