code: @Override
     public List<PropertyData> getReferencesData(String identifier, boolean skipVersionStorage)
        throws RepositoryException
     {
        List<PropertyData> props = getReferencedPropertiesData(identifier);
  
        if (skipVersionStorage)
        {
           List<PropertyData> result = new ArrayList<PropertyData>();
           for (int i = 0, length = props.size(); i < length; i++)
           {
              PropertyData prop = props.get(i);
              if (!prop.getQPath().isDescendantOf(Constants.JCR_VERSION_STORAGE_PATH))
              {
                 result.add(prop);
              }
           }
  
           return result;
        }
  
        return props;
     }
docs: {@inheritDoc}