code: private static int getEpisodeValue(Element eEpisode, String key) {
          int episodeValue;
          try {
              String value = DOMHelper.getValueFromElement(eEpisode, key);
              episodeValue = NumberUtils.toInt(value, 0);
          } catch (WebServiceException ex) {
              LOG.trace("Failed to read episode value", ex);
              episodeValue = 0;
          }
  
          return episodeValue;
      }
docs: Process the "key" from the element into an integer.
  
  @param eEpisode
  @param key
  @return the value, 0 if not found or an error.