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 ; }
Process the key from the element into an integer .