Hi Amol,

We recently changed the abstract outbound gateway in the `file` module to use an enum for commands, and a switch statement; it looks a lot cleaner (https://github.com/garyrussell/spring-integration/blob/master/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java)

I also wonder if this class should really be a subclass of that or, perhaps if you think it wouldn't reuse much of the code, we should consider doing some more refactoring there, to make reuse easier.

??