moved transaction handling for getDatafile to JpaStorage class