docs: public Reference updateReference(Reference oldReference, Reference newReference) throws GreenPepperServerException {
          try {
              sessionService.startSession();
              sessionService.beginTransaction();
  
              Repository repository = loadRepository(oldReference.getSpecification().getRepository().getUid());
  
  
              newReference = documentDao.updateReference(oldReference, newReference);
  
              log.debug("Updated Reference: " + newReference.getRequirement().getName() + "," + newReference.getSpecification().getName());
              sessionService.commitTransaction();
  
              return newReference;
          } catch (Exception ex) {
              sessionService.rollbackTransaction();
              throw handleException(REFERENCE_UPDATE_FAILED, ex);
          } finally {
              sessionService.closeSession();
          }
      }