implemented getRouteCollection method into DynamicRouter