private RenderResult renderReactMarkup(String path,String resourceType,String wcmmode,ScriptContext scriptContext){
  JavascriptEngine javascriptEngine;
  try {
    javascriptEngine=enginePool.borrowObject();
    try {
      if (reloadScripts) {
        javascriptEngine.reloadScripts();
      }
      return javascriptEngine.render(path,resourceType,wcmmode,createCqx(scriptContext));
    }
  finally {
      enginePool.returnObject(javascriptEngine);
    }
  }
 catch (  NoSuchElementException e) {
    throw new TechnicalException("cannot get engine from pool",e);
  }
catch (  IllegalStateException e) {
    throw new TechnicalException("cannot return engine from pool",e);
  }
catch (  Exception e) {
    throw new TechnicalException("error rendering react markup",e);
  }
}

private RenderResult renderReactMarkup ( String path , String resourceType , String wcmmode , ScriptContext scriptContext ) { JavascriptEngine javascriptEngine ; try { javascriptEngine = enginePool . borrowObject ( ) ; try { if ( reloadScripts ) { javascriptEngine . reloadScripts ( ) ; } return javascriptEngine . render ( path , resourceType , wcmmode , createCqx ( scriptContext ) ) ; } finally { enginePool . returnObject ( javascriptEngine ) ; } } catch ( NoSuchElementException e ) { throw new TechnicalException ( "cannot get engine from pool" , e ) ; } catch ( IllegalStateException e ) { throw new TechnicalException ( "cannot return engine from pool" , e ) ; } catch ( Exception e ) { throw new TechnicalException ( "error rendering react markup" , e ) ; } }
render the react markup
