private static String getSecretkey() {
        String key = "secretKey";
        Lock lock = secretKeyCache.getLock(key);
        lock.lock();
        try {
            String secret = secretKeyCache.get(key);
            if (secret == null) {
                secret = StringUtils.randomString(10);
                secretKeyCache.put(key, secret);
            }
            return secret;
        }
        finally {
            lock.unlock();
        }
    }
Returns the secret key that was randomly generated. When running inside of a cluster
the key will be unique to all cluster nodes.

@return the secret key that was randomly generated.
xmppserver/src/main/java/org/jivesoftware/openfire/server/ServerDialback.java