// extract template from specified class' @Path annotation
Path path = link.resource().getAnnotation(Path.class);
template = path==null ? "" : path.value();
if (link.method().length() > 0) {
// append value of method's @Path annotation
MethodList methods = new MethodList(link.resource());
methods = methods.hasAnnotation(Path.class);
Iterator<AnnotatedMethod> iterator = methods.iterator();
while (iterator.hasNext()) {
AnnotatedMethod method = iterator.next();
if (!method.getMethod().getName().equals(link.method()))
continue;
Path methodPath = method.getAnnotation(Path.class);