String source =
envelope.getDocument().getArea() + envelope.getDocument().getDocumentURL();
Request request = ObjectModelHelper.getRequest(objectModel);
map = parameterizer.parameterize(filterURI(request.getRequestURI()), filterURI(source), parameters);
documentType = (String) map.get(URI_PARAMETER_DOCTYPE);
} finally {
if (parameterizer != null) {
manager.release(parameterizer);