private static List getEmbeddedJars()

in src/main/java/org/apache/sling/tooling/support/source/impl/SourceReferencesServlet.java [190:207]


    private static List<String> getEmbeddedJars(Bundle bundle) {

        String classPath = bundle.getHeaders().get(Constants.BUNDLE_CLASSPATH);
        if (classPath == null) {
            return Collections.emptyList();
        }

        List<String> embeddedJars = new ArrayList<>();

        String[] classPathEntryNames = classPath.split("\\,");
        for (String classPathEntry : classPathEntryNames) {
            if (classPathEntry.endsWith(".jar")) {
                embeddedJars.add(classPathEntry);
            }
        }

        return embeddedJars;
    }