private Integer getInteger(String value) {
        int priority = 0;
        if (value != null) {
            try {
                priority = new Integer(value);
            } catch (NumberFormatException e) {
                // do nothing
            }
        }

        return priority;
    }
private Integer getInteger ( String value ) { int priority = 0 ; if ( value != null ) { try { priority = new Integer ( value ) ; } catch ( NumberFormatException e ) { } } return priority ; }
helper methods