private String getCurrentVersion() {
        try {
            Enumeration<URL> resources = getClass().getClassLoader().getResources("META-INF/MANIFEST.MF");
            while (resources.hasMoreElements()) {
                try {
                    Manifest manifest = new Manifest(resources.nextElement().openStream());
                    Attributes mainAttributes = manifest.getMainAttributes();
                    if (mainAttributes != null && "calabash-android-java".equals(mainAttributes.getValue("Project-Name"))) {
                        String value = mainAttributes.getValue("Implementation-Version");
                        if (value != null)
                            return value;
                    }
                } catch (Exception E) {
                    // ignore
                }
            }
        } catch (Exception e) {
            // ignore
        }

        return "";
    }