code: public String[] getVersionLabels() throws RepositoryException
     {
        checkValid();
  
        List<PropertyData> versionLabels = getData().getVersionLabels();
        String[] labelsStrs = new String[versionLabels.size()];
        for (int i = 0; i < versionLabels.size(); i++)
        {
           labelsStrs[i] = locationFactory.createJCRName(versionLabels.get(i).getQPath().getName()).getAsString();
        }
  
        return labelsStrs;
     }
docs: {@inheritDoc}