function createMacroInstance ($tagName)
  {
    $propsClass       = $tagName . 'Properties';
    $path             = $this->findMacroFile ($tagName);
    $com              = new MacroCall;
    $com->propsClass  = $propsClass;
    $com->templateUrl = $path;
    return $com;
  }
function createMacroInstance ($tagName)
  {
    $propsClass       = $tagName . 'Properties';
    $path             = $this->findMacroFile ($tagName);
    $com              = new MacroCall;
    $com->propsClass  = $propsClass;
    $com->templateUrl = $path;
    return $com;
  }
function createMacroInstance ( $ tagName ) { $ propsClass = $ tagName . 'Properties' ; $ path = $ this -> findMacroFile ( $ tagName ) ; $ com = new MacroCall ; $ com -> propsClass = $ propsClass ; $ com -> templateUrl = $ path ; return $ com ; }
Loads and compiles the macro, or retrieves it from the cache.

<p>This method returns a MacroInstance composite component containing the macro as its shadow DOM.

@param string $tagName
@return MacroCall
@throws FileIOException
Loads and compiles the macro or retrieves it from the cache .