Make abstract resource the generic resource class.