code: public void setContextPath(String contextPath) {
  		if (StringUtils.isNotEmpty(contextPath)) {
  			if (contextPath.charAt(0) != '/') {
  				contextPath = '/' + contextPath;
  			}
  			if (contextPath.charAt(contextPath.length() - 1) != '/') {
  				contextPath = contextPath + '/';
  			}
  			this.contextPath = contextPath;
  		} else {
  			this.contextPath = null;
  		}
  	}
docs: Sets the context path
  
  @param contextPath
  the contextPath to set