private static int parseInt(String s) {
    try {
      return Integer.parseInt(s);
    } catch (NumberFormatException ex) {
      throw new CacheXmlException(
          String.format("Malformed integer %s", s), ex);
    }
  }
Helper method for parsing an integer

@throws CacheXmlException If <code>s</code> is a malformed integer
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java