code: public Closure createClosure(final Object owner, final ClosureTarget target) {
      checkNotNull(owner);
      checkNotNull(target);
  
      return new Closure(owner)
      {
        @Override
        public Object call(final Object[] args) {
          try {
            return target.call(args);
          }
          catch (Exception e) {
            throw Throwables.propagate(e);
          }
        }
  
        @Override
        public String toString() {
          return Closure.class.getSimpleName() + "{owner=" + owner + ", target=" + target + "}";
        }
      };
    }
docs: Creates a {@link Closure} from a {@link ClosureTarget}.