package com.github.aureliano.verbum_domini.helper;

import org.apache.commons.lang.StringUtils;

public final class UrlHelper {

	private UrlHelper() {
		super();
	}
	
	public static String join(Object...tokens) {
		return "/" + StringUtils.join(tokens, '/');
	}
}
@@ -45,16 +45,100 @@
 elper;%0A%0A
+import javax.servlet.ServletRequest;%0Aimport javax.servlet.http.HttpServletRequest;%0A%0A
 import o
@@ -340,9 +340,321 @@
 /');%0A%09%7D%0A
+%09%0A%09public static String buildWebAppUrl(ServletRequest request, String path) %7B%0A%09%09String contextPath = ((HttpServletRequest) request).getContextPath();%0A%09%09return join(contextPath.substring(1), path);%0A%09%7D%0A%09%0A%09public static String buildWebAppUrl(String path) %7B%0A%09%09return buildWebAppUrl(WebHelper.getRequest(), path);%0A%09%7D%0A
 %7D

Add method to build URLs with context path.