public static int getIntProperty(String name, int defaultValue) {
        String value = getProperty(name);
        if (value != null) {
            try {
                return Integer.parseInt(value);
            }
            catch (NumberFormatException nfe) {
                // Ignore.
            }
        }
        return defaultValue;
    }
Returns an integer value Jive property. If the specified property doesn't exist, the
{@code defaultValue} will be returned.

@param name the name of the property to return.
@param defaultValue value returned if the property doesn't exist or was not
     a number.
@return the property value specified by name or {@code defaultValue}.
xmppserver/src/main/java/org/jivesoftware/util/JiveGlobals.java