__init__ method added to ObjectResource. isInitialized() method is also added