adding resource model with optional resource identification (by @href or by URI template)