{
SaveImageRequest currentRequest = (SaveImageRequest) inActionContext.getParams();
imageWriter.write(currentRequest.getFileItem(), "n" + currentRequest.getImageId());
mapper.updateBannerId(currentRequest.getEntityId(), currentRequest.getImageId());
mapper.flush();
cacheMapper.execute(new UpdateCachedBannerMapperRequest(currentRequest.getImageId(), currentRequest
.getEntityId()));
}
catch (Exception ex)
{
log.error("Error running SaveBannerAction", ex);