} catch (HibernateException he) {
logger.error("Error while getting the objects associated with the data set with id " + dsId, he);
if (tx != null)
tx.rollback();
throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
} finally {
if (aSession!=null){
if (aSession.isOpen()) aSession.close();
}
}