Calling a method for one line of code seems pretty weird.
Just do main.swap( ... ) inside execute method directly.