Fix a bug related to jaxrs resource pattern building.