public void setTypeFromString(String typeName) {
        try {
            type = Type.valueOf(typeName);
        }
        catch (Exception e) {
            if (parent != null) {
                type = Type.defaulType;
            }
            else {
                type = Type.number;
            }
        }
    }
Obtain the strategy type from string name. See the Type enumeration name
strings for the names strings supported. If nothing matches
and parent is not null, then the default strategy is used. Otherwise the number
strategy is used.

@param typeName the text name of the strategy type.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/HistoryStrategy.java