ResteasyUriBuilder builder = new ResteasyUriBuilder();
if (base != null) builder.path(base);
if (clazz.isAnnotationPresent(Path.class)) builder.path(clazz);
String classExpression = builder.getPath();
if (path != null) builder.path(method);
String fullpath = builder.getPath();
if (fullpath == null) fullpath = "";
if (widerMatching) rootNode.removeBinding(fullpath, method);
else root.removeBinding(classExpression, fullpath, method);