private static String getExportPackages(String[] jars) throws IOException {
        StringBuilder out = new StringBuilder();
        out.append(getSystemPackages()).append(", ")
           .append("com.yahoo.jdisc, ")
           .append("com.yahoo.jdisc.application, ")
           .append("com.yahoo.jdisc.handler, ")
           .append("com.yahoo.jdisc.service, ")
           .append("com.yahoo.jdisc.statistics, ")
           .append("com.yahoo.jdisc.refcount, ")

           .append("javax.inject;version=1.0.0, ")  // TODO Vespa 9: remove. Included in guice, but not exported. Needed by container-jersey.
           .append("org.aopalliance.intercept, ")
           .append("org.aopalliance.aop");

        for (int i = 1; i < jars.length; ++i) {
            String exports = getExportedPackages(jars[i]);
            if (exports != null && ! exports.isEmpty())
                out.append(", ").append(exports);
        }
        return out.toString();
    }
@author Simon Thoresen Hult
@author gjoranv
jdisc_core/src/main/java/com/yahoo/jdisc/core/ExportPackages.java