code: function contributedFunc(service) {
  		if (typeof(service) !== "function") { //$NON-NLS-0$
  			return undefined;
  		}
  		return function(args, typeSpec, context) {
  			var promise = new Deferred();
  			if (context) {
  				/* invoking parse() */
  				context.cwd = getCWD();
  			}
  			service(args, typeSpec, context).then(
  				function(result) {
  					promise.resolve(result);
  				},
  				function(error) {
  					promise.reject(error);
  				}
  			);
  			return promise;
  		};
  	}
docs: /*
  Creates a gcli exec function that wraps a 'callback' function contributed by
  an 'orion.shell.type' service implementation.