@Override
    public String getParameter(String name) {

        // If no such parameter exists, just return null
        String[] values = getParameterValues(name);
        if (values == null)
            return null;

        // Otherwise, return first value
        return values[0];

    }
Wraps the given HttpServletRequest, using the given MultivaluedMap to
provide all request parameters. All HttpServletRequest functions which
do not deal with parameter names and values are delegated to the wrapped
request.

@param request
    The HttpServletRequest to wrap.

@param parameters
    All request parameters.
guacamole/src/main/java/org/apache/guacamole/rest/APIRequest.java