// recover the saved binary hibernate object
hibBinContent = (SbiBinContents) aSession.load(SbiBinContents.class, idBin);
// recover the associated biobject
SbiObjects obj = (SbiObjects) aSession.load(SbiObjects.class, dossierPresentation.getBiobjectId());
// store the object template
SbiDossierPresentations hibObj = new SbiDossierPresentations();
hibObj.setWorkflowProcessId(dossierPresentation.getWorkflowProcessId());
hibObj.setCreationDate(new Date());
hibObj.setName(dossierPresentation.getName());
hibObj.setProg(null);
hibObj.setSbiBinaryContent(hibBinContent);
hibObj.setSbiObject(obj);
hibObj.setApproved(null);
updateSbiCommonInfo4Insert(hibObj);
aSession.save(hibObj);
tx.commit();
} catch (HibernateException he) {
logException(he);