Revert "Revert "Update Command.java""

This reverts commit 2dd71c432c8106bc059a5c6939e922bca047b180.