public static Encryptor getPropertyEncryptor(boolean useNewEncryptor) {
        if (securityProperties == null) {
            loadSecurityProperties();
        }
        if (propertyEncryptor == null) {
            String algorithm = securityProperties.getProperty(ENCRYPTION_ALGORITHM);
            propertyEncryptor = getEncryptor(algorithm, currentKey);
            propertyEncryptorNew = propertyEncryptor;
        }
        return useNewEncryptor ? propertyEncryptorNew : propertyEncryptor;
    }
Fetches the property encryptor.

@param useNewEncryptor Should use the new encryptor
@return The property encryptor
xmppserver/src/main/java/org/jivesoftware/util/JiveGlobals.java