class MetadataSchemaPropertiesImpl implements MetadataProperties {

    protected final Map<String, List<String>> removeBlacklistedMetadataProperties(final Map<String, List<String>> collectedMetadata) {
        if (cfg != null && cfg.blacklisted_metadata_properties() != null) {
            for (String propertyName : cfg.blacklisted_metadata_properties()) {

                String withoutDotSlash = StringUtils.removeStart(propertyName, "./");
                String withDotSlash = "./" + withoutDotSlash;

                if (collectedMetadata.containsKey(withDotSlash)) {
                    collectedMetadata.remove(withDotSlash);
                }

                if (collectedMetadata.containsKey(withoutDotSlash)) {
                    collectedMetadata.remove(withoutDotSlash);
                }
            }
        }

        return collectedMetadata;
    }

}