code: public void removeReference(Reference reference) throws GreenPepperServerException
      {
          reference = get(reference);
  
  		if (reference != null)
  		{
  			Requirement requirement = reference.getRequirement();
  			requirement.removeReference(reference);
  			reference.getSpecification().removeReference(reference);
  			if(requirement.getReferences().isEmpty())
  			{
  				requirement.getRepository().removeRequirement(requirement);
  				sessionService.getSession().delete(requirement);
  			}
  
  			sessionService.getSession().delete(reference);
  		}
      }
docs: {@inheritDoc}