lib/utils.js
function getModelFromContext (context, app) {
  var type = getTypeFromContext(context)
  if (app.models[type]) return app.models[type]

  var name = modelNameFromContext(context)
  return app.models[name]
}
function getModelFromContext (context, app) {
  var type = getTypeFromContext(context)
  if (app.models[type]) return app.models[type]

  var name = modelNameFromContext(context)
  return app.models[name]
}
function getModelFromContext ( context , app ) { var type = getTypeFromContext ( context ) if ( app . models [ type ] ) return app . models [ type ] var name = modelNameFromContext ( context ) return app . models [ name ] }
Returns a model from the app object.
@public
@memberOf {Utils}
@param {Object} context
@param {Object} app
@return {Object}
Returns a model from the app object .