{
Path path = method.getAnnotation(Path.class);
Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
if (path == null && httpMethods == null) continue;
UriBuilderImpl builder = new UriBuilderImpl();
if (base != null) builder.path(base);
if (clazz.isAnnotationPresent(Path.class)) builder.path(clazz);
if (path != null) builder.path(method);
String pathExpression = builder.getPath();
if (pathExpression == null) pathExpression = "";
ResourceInvoker invoker = rootSegment.removePath(pathExpression, method);
if (invoker != null)
{