added ResourceRequestContext and route variables retrieving