public static int getIntProperty ( final MessageResources msg , final String pname , final int def ) throws Throwable { String p = msg . getMessage ( pname ) ; if ( p == null ) { return def ; } return Integer . valueOf ( p ) ; }
Return an int property value or the default