catch (AppRegistrationException
$e) { $this->
removeAppAndRole($app,
$context);
throw $e;
} } // Refetch app to get secret after registration
$app =
$this->
loadApp($id,
$context);
try { $this->
assertAppSecretIsPresentForApplicableFeatures($app,
$manifest);
} catch (AppException
$e) { $this->
removeAppAndRole($app,
$context);
throw $e;
} $flowActions =
$this->appLoader->
getFlowActions($app);
if ($flowActions) { $this->flowBuilderActionPersister->
updateActions($flowActions,
$id,
$context,
$defaultLocale);
}