Registry r = new Registry(); PackageManager.commitProtocolPrefixList(); PackageManager.commitContentPrefixList(); try { r.commit(); } catch (Throwable t) { System.err.println(t); }