springContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
UserDetails userDetails = getUserDetails();
T domainEntity = getDomainEntity(userDetails.getUsername(), request);
HashGeneratorStrategy hasher = new HashGeneratorStrategy();
String imageId = hasher.hash(String.valueOf(domainEntity.getId()));
try
{
FileItem uploadItem = getFileItem(request);