code: public Version getVersionByLabel(String label) throws RepositoryException
     {
        checkValid();
  
        NodeData versionData = getVersionDataByLabel(label);
        if (versionData == null)
        {
           throw new RepositoryException("There are no label '" + label + "' in the version history " + getPath());
        }
  
        VersionImpl version = (VersionImpl)dataManager.getItemByIdentifier(versionData.getIdentifier(), true, false);
  
        if (version == null)
        {
           throw new VersionException("There are no version with label '" + label + "' in the version history "
              + getPath());
        }
  
        return version;
  
     }
docs: {@inheritDoc}