private void reportInvalidResource()

in src/main/java/org/apache/sling/installer/hc/OsgiInstallerHealthCheck.java [206:230]


    private void reportInvalidResource(Resource invalidResource, String resourceType, FormattingResultLog hcLog) {
        if (skipEntityIdsWithVersions.containsKey(invalidResource.getEntityId())) {
            List<Version> versions = skipEntityIdsWithVersions.get(invalidResource.getEntityId());
            if (versions != null) {
                for (Version version : versions) {
                    if (version.equals(invalidResource.getVersion())) {
                        LOG.debug("Skipping not installed resource '{}' as its entity id and version is in the skip list", invalidResource);
                        return;
                    }
                }
            } else {
                LOG.debug("Skipping not installed resource '{}' as its entity id is in the skip list", invalidResource);
                return;
            }
        }
        if (resourceType.equals(InstallableResource.TYPE_CONFIG)) {
            hcLog.critical(
                    "The installer state of the OSGi configuration resource '{}' is {}, config might have been manually overwritten!",
                    invalidResource, invalidResource.getState());
        } else {
            hcLog.critical(
                    "The installer state of the OSGi bundle resource '{}' is {}, probably because a later or the same version of that bundle is already installed!",
                    invalidResource, invalidResource.getState());
        }
    }