handlebars/src/main/java/com/github/jknack/handlebars/Options.java
public Context wrap(final Object model) {
    if (model == context.model || model == context) {
      return context;
    }
    if (model instanceof Context) {
      return (Context) model;
    }
    return Context.newContext(context, model);
  }
/**
   * Creates a {@link Context} from the given model. If the object is a context
   * already the same object will be returned.
   *
   * @param model The model object.
   * @return A context representing the model or the same model if it's a
   *         context already.
   */
Creates a  Context from the given model. If the object is a context
already the same object will be returned.

@param model The model object.
@return A context representing the model or the same model if it's a
context already.
Creates a Context from the given model . If the object is a context already the same object will be returned . @param model The model object . @return A context representing the model or the same model if it ' s a context already .
public Context wrap(final Object model) {
    if (model == context.model || model == context) {
      return context;
    }
    if (model instanceof Context) {
      return (Context) model;
    }
    return Context.newContext(context, model);
  }
public Context wrap ( final Object model ) { if ( model == context . model || model == context ) { return context ; } if ( model instanceof Context ) { return ( Context ) model ; } return Context . newContext ( context , model ) ; }
Creates a {@link Context} from the given model.
Creates a { @link Context } from the given model .