fixed getPathComponentsForModelClass for sub resources