added public getResource() method to the BasePresenter class