public String getResourceSuperType()

in src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java [109:125]


    public String getResourceSuperType() {
        // Yes, this isn't how you're supposed to compare Strings, but this is intentional.
        if (resourceSuperType == UNSET_RESOURCE_SUPER_TYPE) {
            try {
                Property property = NodeUtil.getPropertyOrNull(getNode(), JcrResourceConstants.SLING_RESOURCE_SUPER_TYPE_PROPERTY);
                if (property != null) {
                    resourceSuperType = property.getValue().getString();
                }
            } catch (RepositoryException re) {
                // we ignore this
            }
            if (resourceSuperType == UNSET_RESOURCE_SUPER_TYPE) {
                resourceSuperType = null;
            }
        }
        return resourceSuperType;
    }