private void checkPath(TyrusEndpoint endpoint) throws DeploymentException {
   for (TyrusEndpoint tyrusEndpoint : endpoints) {
     if (Match.isEquivalent(endpoint.getPath(), tyrusEndpoint.getPath())) {
       throw new DeploymentException(
           String.format(
               "Found equivalent paths. Added path: '%s' is equivalent with '%s'.",
               endpoint.getPath(), tyrusEndpoint.getPath()));
     }
   }
 }