Built a method to generate a UriMatcher to use in the class when it initializes.