Aura.getContextService().assertEstablished();
BaseComponent<?, ?> renderable = null;
BaseComponent<?, ?> tmpRenderable = component;
BaseComponentDef componentDef = null;
RendererDef rendererDef = null;
while (tmpRenderable != null) {
componentDef = tmpRenderable.getDescriptor().getDef();
if (rendererDef == null) {
rendererDef = componentDef.getLocalRendererDef();
if (rendererDef == null && componentDef.getRendererDescriptor() != null) {
break;
}
renderable = tmpRenderable;
}
tmpRenderable = tmpRenderable.getSuper();
}
if (rendererDef == null) {
throw new AuraRuntimeException(String.format("No local RendererDef found for %s", component));
}
rendererDef.render(renderable, out);
}