public ManifestReaderImpl() {
        try {
            URLClassLoader cl = (URLClassLoader) getClass().getClassLoader();
            URL url = cl.findResource("META-INF/MANIFEST.MF");
            Manifest manifest = new Manifest(url.openStream());
            Attributes attrs = manifest.getMainAttributes();
            version = attrs.getValue("version");
        } catch (IOException e) {
            version = "error";
        }
    }