code: protected Object decorate(Object closure, Object object) {
          if (closure instanceof Closure) {
              return ((Closure) closure).call(object);
          }
          return closure;
      }
docs: Decorates an object instance if the <code>closure</code> value is an instance of {@link Closure}.
  
  @param closure
  the closure which is used to decorate the object.
  @param object
  the value to decorate
  @return the decorated instance if <code>closure</code> implements {@link Closure}, otherwise the value of
  <code>object</code>