//
String csrfCheck = props.get(PortletURLBuilder.CSRF_PROP);
url.setCSRFCheck(Boolean.parseBoolean(csrfCheck));
//
MimeType mimeType = Boolean.TRUE.equals(format.getWantEscapeXML()) ? MimeType.XHTML : MimeType.PLAIN;
url.setMimeType(mimeType);
//
return url.toString();
}