@Override
    public void route(Packet packet) {
        // Security: Don't allow users to send packets on behalf of other users
        packet.setFrom(session.getAddress());
        if(packet instanceof IQ) {
            route((IQ)packet);
        }
        else if(packet instanceof Message) {
            route((Message)packet);
        }
        else if(packet instanceof Presence) {
            route((Presence)packet);
        }
    }
Sets if TO addresses of Elements being routed should be validated. Doing stringprep operations
is very expensive and sometimes we already validated the TO address so there is no need to
validate again the address. For instance, when using Connection Managers the validation
is done by the Connection Manager so we can just trust the TO address. On the other hand,
the FROM address is set by the server so there is no need to validate it.<p>

By default validation is enabled.

@param skipJIDValidation true if validation of TO address is enabled.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionPacketRouter.java