response.header("Content-Disposition", dispositionType + "; filename=\"" + imageData.getEntityDisplayName()
+ IMAGE_FILE_EXTENSION.JPEG + "\"");
// TODO: Need a better way of determining image type
response.header("Content-Type", imageData.contentType());
return response.build();
}
/**
* This method is added only for consistency with other URL patterns and for