deleteTargets(registry, associations);
associations = registry.getAssociations(profilePath,
IdentityRegistryResources.ASSOCIATION_USER_OAUTH_APP);
deleteTargets(registry, associations);
if (!transactionStarted) {
registry.commitTransaction();
}
} catch (Exception e) {
if (!transactionStarted) {
registry.rollbackTransaction();
}