add protected _getResource method