public StreamID nextStreamID() {
        return streamIDFactory.createStreamID();
    }
Returns a randomly created ID to be used in a stream element.

@return a randomly created ID to be used in a stream element.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java