Add getCurrentCommand method to DefaultServiceManager.