public static int getXMLProperty(String name, int defaultValue) {
        String value = getXMLProperty(name);
        if (value != null) {
            try {
                return Integer.parseInt(value);
            }
            catch (NumberFormatException nfe) {
                // Ignore.
            }
        }
        return defaultValue;
    }
Returns an integer value local property. Local properties are stored in the file defined in
{@code JIVE_CONFIG_FILENAME} that exists in the {@code home} directory.
Properties are always specified as "foo.bar.prop", which would map to
the following entry in the XML file:
<pre>
&lt;foo&gt;
    &lt;bar&gt;
        &lt;prop&gt;some value&lt;/prop&gt;
    &lt;/bar&gt;
&lt;/foo&gt;
</pre>

If the specified property can't be found, or if the value is not a number, the
{@code defaultValue} will be returned.

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