/** * Creates a service for generic shell execution, containing the "run" service * method. * * @return generic exec service */ public static Service createGenericExecService() { return new ServiceDescription("exec", "Command execution service") .addServiceMethod(runMethod()) .executorService(defaultExecutor) .createService(); } }