question: public static Integer stringToInteger ( String s , Integer defaultValue ) { try { return Integer . parseInt ( s ) ; } catch ( NumberFormatException nfe ) { return defaultValue ; } }
target:  Convert a String to an Integer, falling back to a defaultValue if the String cannot be parsed. This is useful because there are issues passing an integer directly through UimaFIT to a component, and currently we need to pass it as a String and convert it.