private static void getVersionInResource() {
String implVersion = null;
// Read version from joram.version file in bundle.
try {
InputStream in = MetaData.class.getResourceAsStream("/joram.version");
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String v = reader.readLine();
while (v != null) {
if (v.contains("version"))
implVersion = (v.substring(v.indexOf('=')+1, v.length())).trim();
else if (v.contains("protocol"))