Adding parse method to DefaultRouter.
Added logic into dispatcher