227228229230231232233234235236237
DomainRegistry.userRepository().add(user); ApplicationServiceRegistry .identityApplicationService() .changeUserPrimaryTelephone( new ChangePrimaryTelephoneCommand( user.tenantId().id(), user.username(), "777-555-1211")); User changedUser =