// 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);
String methodTemplate = methodPath.value();
StringBuilder builder = new StringBuilder();
builder.append(template);
if (!(template.endsWith("/") || methodTemplate.startsWith("/")))
builder.append("/");