Map Discovery to work in JAR