Simplifying the DistributedShellApplicationMaster.java