Iterator iterImgs = images.keySet().iterator();
while(iterImgs.hasNext()){
String logicalName = (String) iterImgs.next();
//String logicalNameForStoring = pathConfBook.replace('/', '_') + logicalName + ".jpg";
UUIDGenerator uuidGenerator = UUIDGenerator.getInstance();
UUID uuidObj = uuidGenerator.generateTimeBasedUUID();
String uuid = uuidObj.toString();
// TODO perche salvare su file system? tanto vale tenere in memoria le immagini, oppure scriverli sul file system e far puntare l'immagine al file
String logicalNameForStoring = uuid + logicalName;
byte[] content = (byte[])images.get(logicalName);
File img = new File(tempDir, logicalNameForStoring + ".jpg");
FileOutputStream fos = new FileOutputStream(img);