public void run() {
        super.run();

        switch (operation) {
            case getLocalDomain:
                result = ((IncomingServerSession) getSession()).getLocalDomain();
                break;

            case getAddress:
                result = getSession().getAddress();
                break;

            case getAuthenticationMethod:
                result = ((IncomingServerSession) getSession()).getAuthenticationMethod();
                break;

            case getValidatedDomains:
                result = ((IncomingServerSession) getSession()).getValidatedDomains();
                break;
        }
    }
Class that defines possible remote operations that could be performed
on remote incoming server sessions.

@author Gaston Dombiak
xmppserver/src/main/java/org/jivesoftware/openfire/session/IncomingServerSessionTask.java