public static String getLastParam(final HttpServletRequest request, final String name) {
        final String[] arr = request.getParameterValues(name);
        if (arr != null && arr.length > 0) {
            return arr[arr.length - 1];
        }
        return null;
    }
Gets the last parameter assuming that it has been appended to the end of the URL.

@param request The request containing the parameters.
@param name    The parameter name to get.
@return The last value of the parameter if it exists, else null.
stroom-util/src/main/java/stroom/util/net/UrlUtils.java