class ProfileServiceImpl extends BaseTransactionalService implements ProfileService {

    private void updateProfileAgreement(User user, Agreement agreement) {
        Profile profile = getOrCreateUserProfile(user);
        profile.setAgreementSignedDate(ZonedDateTime.now());
        profile.setAgreement(agreement);
        profileRepository.save(profile);
    }

}