in src/main/java/org/apache/sling/installer/factory/model/impl/UninstallFeatureModelTask.java [39:54]
public void execute(final InstallationContext ctx) {
try {
final OsgiInstaller installer = this.getService(OsgiInstaller.class);
if ( installer == null ) {
ctx.log("Unable to get OSGi Installer service!");
} else {
final TaskResource resource = this.getResource();
ctx.log("Uninstalling {}", resource.getEntityId());
installer.registerResources(getScheme(resource), null);
this.getResourceGroup().setFinishState(ResourceState.UNINSTALLED);
ctx.log("Uninstalled {}", resource.getEntityId());
}
} finally {
this.cleanup();
}
}