int (@NotNull Element element) { String versionStr = element.getAttributeValue(VERSION_ATTR); if (versionStr == null) { return 0; } else { try { return Integer.parseInt(versionStr); } catch (NumberFormatException nfe) { return CURR_VERSION; } } }