public void setType(Type newType){
        if (type == newType) {
            // Do nothing since value has not changed
            return;
        }
        if (newType != null){
            type = newType;
        }
        if (contextPrefix != null){
            MUCPersistenceManager.setProperty(contextSubdomain, contextPrefix + ".type", type.toString());
        }
    }
Set the type of history strategy being used.

@param newType The new type of chat history to use.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/HistoryStrategy.java