@Override
    public InputStream asStream() {
        return context.getResourceAsStream(path);
    }
Creates a new WebApplicationResource which serves the resource at the
given path relative to the given ServletContext. The mimetype of the
resource is automatically determined based on the filename within the
path.

@param context
    The ServletContext to use when reading the resource and deriving the
    mimetype.

@param path
    The path of the resource relative to the given ServletContext.
guacamole/src/main/java/org/apache/guacamole/resource/WebApplicationResource.java