private static String getVersionFromManifest(String path) throws IOException {
    String manifestPath = path.substring(0, path.lastIndexOf("!") + 1) + "/META-INF/MANIFEST.MF";
    Manifest manifest = new Manifest(new URL(manifestPath).openStream());
    Attributes attr = manifest.getMainAttributes();
    return attr.getValue("version");
  }
Loads resources as stream and the main reason for having the method is because it can be use
while testing and in production for loading files from within jar file.

@param resource The resource to load.
@return The input stream of the resource.
@throws SelendroidException if resource was not found.
selendroid-standalone/src/main/java/io/selendroid/standalone/builder/SelendroidServerBuilder.java