code: public void updateSpecification(Specification oldSpecification, Specification newSpecification)throws GreenPepperServerException 
      {
          String oldUid = oldSpecification.getRepository().getUid();        
          Specification specificationToUpdate = getSpecificationByName(oldUid, oldSpecification.getName());
          
          if(specificationToUpdate == null)
              throw new GreenPepperServerException(GreenPepperServerErrorKey.SPECIFICATION_NOT_FOUND, "Specification not found");
          
          specificationToUpdate.setName(newSpecification.getName());
          sessionService.getSession().update(specificationToUpdate);
      }
docs: {@inheritDoc}