protected void createDebianProperties(POMInfo info, POMInfo original, String debianPackage, int inLevel) throws XMLStreamException {
        info.getProperties().put("debian.originalVersion", info.getOriginalVersion());
        if (debianPackage != null) {
            info.getProperties().put("debian.package", debianPackage);
        }
        if (!info.getProperties().containsKey("debian.mavenRules")) {
            if (publishUsedRule && info.getOriginalPom() != null) {
                DependencyRule usedRule = info.getOriginalPom().findMatchingRule(depRules.get(RULES).getRules());
                if (usedRule != null && !usedRule.equals(TO_DEBIAN_VERSION_RULE) && !usedRule.equals(MAVEN_PLUGINS_KEEP_VERSION_RULE)) {
                    depRules.get(PUBLISHED).add(usedRule);
                }
            }
            if (!depRules.get(PUBLISHED).isEmpty()) {
                String glue = ",\n" + Strings.repeat("\t", inLevel + 1);
                info.getProperties().put("debian.mavenRules", Strings.join(depRules.get(PUBLISHED), glue));
            }
        }
    }