*/
public static CommandHandle exec(Command c)
throws IOException, InterruptedException {
CmdAgentImpl agent = CmdAgentImpl.getHandle();
if (agent != null) // Running on agent
return agent.execute(c, Invoker.getContextLocation());
else // Running on master
return CmdService.getHandle().execute(c,
Invoker.getContextLocation());
}