Well, that's a good question @anasustic. Are you using Sling Models with ModelExporters? If yes, your models may also be implementing ComponentExporter.getExporterType(), in this case, you can call resource.exporterType() which returns the component resourceType. If you're not using ModelExporters, ...