public int getIntProp ( Prop . Names prop ) throws CommandExecutionException { String value = getSingleProp ( prop ) ; if ( value . equals ( "" ) ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; try { return Integer . valueOf ( value ) ; } catch ( Exception e ) { throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; } }
Get a single property value and try to convert it to an int .