public static int getVersion() { final URL src; try { src = getResourceURL(Paths.Resources.VERSION); } catch (final MalformedURLException ignored) { return -1; } return Integer.parseInt(IOHelper.readString(src).trim()); }
public static String getServiceKey() { final File key = new File(Configuration.Paths.getServiceKey()); if (key.exists() && key.canRead()) return StringUtil.newStringUtf8(IOHelper.read(key)); return DEFAULTKEY; }