public boolean isReactComponent(String resourceType){
  Invocable invocable=((Invocable)engine);
  try {
    Bindings AemGlobal=(Bindings)engine.get("AemGlobal");
    Object registry=AemGlobal.get("registry");
    Object component=invocable.invokeMethod(registry,"getComponent",resourceType);
    return component != null;
  }
 catch (  NoSuchMethodException|ScriptException e) {
    throw new TechnicalException("cannot render react on server",e);
  }
}

public boolean isReactComponent ( String resourceType ) { Invocable invocable = ( ( Invocable ) engine ) ; try { Bindings AemGlobal = ( Bindings ) engine . get ( "AemGlobal" ) ; Object registry = AemGlobal . get ( "registry" ) ; Object component = invocable . invokeMethod ( registry , "getComponent" , resourceType ) ; return component != null ; } catch ( NoSuchMethodException | ScriptException e ) { throw new TechnicalException ( "cannot render react on server" , e ) ; } }
check if the template associated with this resourcetype is a react component
