String path = context.getRealPath("/");
namePhoto = java.util.UUID.randomUUID().toString();
photo.setName(namePhoto);
User user = userContainer.getUser();
int hotelId = user.getStructureId();
Structure hotel = (Structure) structureManager.get(hotelId);
ImageUtils.upload(namePhoto, path, image, hotelId, hotelId, 400, 400, "big");
baseUrlPhoto =ImageUtils.upload(namePhoto, path, image, hotelId, hotelId, 50, 50, "small");
photo.setUrl(baseUrlPhoto);
photo.setGallery(hotel.getGallery());
String locale = localeContainer.getLocale();
String photoLocale = (String) request.getParameter("locale");