original_string: private function get_model_instance($model_classname)
  	{
  	    if(!isset($this->controller->{$model_classname}))
  		{
  			/*
  			 * Do not use $this->controller->loadModel, as calling it from a plugin may prevent correct loading of behaviors
  			 */
  			$model_instance = ClassRegistry :: init($model_classname);
  		}
  		else
  		{
  			$model_instance = $this->controller->{$model_classname};
  		}
  		
  		return $model_instance;
  	}
code: private function get_model_instance($model_classname)
  	{
  	    if(!isset($this->controller->{$model_classname}))
  		{
  			/*
  			 * Do not use $this->controller->loadModel, as calling it from a plugin may prevent correct loading of behaviors
  			 */
  			$model_instance = ClassRegistry :: init($model_classname);
  		}
  		else
  		{
  			$model_instance = $this->controller->{$model_classname};
  		}
  		
  		return $model_instance;
  	}
code_tokens: private function get_model_instance ( $ model_classname ) { if ( ! isset ( $ this -> controller -> { $ model_classname } ) ) { /*
  			 * Do not use $this->controller->loadModel, as calling it from a plugin may prevent correct loading of behaviors
  			 */ $ model_instance = ClassRegistry :: init ( $ model_classname ) ; } else { $ model_instance = $ this -> controller -> { $ model_classname } ; } return $ model_instance ; }
docstring: Return an instance of the given model name
  
  @param string $model_classname
  @return Model
docstring_tokens: Return an instance of the given model name