// But, do not set set AWRequestContext on the AWDirectActionUrl as doing
// this will cause an response id to be added to the URL. This can lead
// to our image URL's causing FPR's.
// Also, explicitly onstructing the URL prevents URL decorators
// from being used.
AWDirectActionUrl url = useFullUrl ?
AWDirectActionUrl.checkoutFullUrl(requestContext) :
AWDirectActionUrl.checkoutUrl();
url.setDirectActionName(AWDirectAction.AWImgActionName);
url.put("name", filename);
imageUrl = url.finishUrl();
if (useFullUrl) {
AWNodeManager nodeManager = application.getNodeManager();
if (nodeManager != null) {
imageUrl = nodeManager.prepareUrlForNodeValidation(imageUrl);
}