}
grant.setIsAvailable(true);
logger.debug("prepared nodes to save of size:"+grantNodes.size());
orUnitDao.insertNodeGrants(grantNodes, grant.getId());
logger.debug("end saving process");
writeBackToClient( new JSONAcknowledge() );
} catch (IOException e) {
throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to write back the responce to the client", e);
} catch (Exception e) {
throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to serialize the responce to the client", e);
}