@Override
    public Optional<? extends PasswordlessUserAccount> customize(final Optional<? extends PasswordlessUserAccount> account) {
        return FunctionUtils.doAndHandle(() -> {
            if (account.isPresent()) {
                val args = new Object[]{account.get(), applicationContext, LOGGER};
                return Optional.ofNullable(watchableScript.execute(args, PasswordlessUserAccount.class));
            }
            return account;
        }, e -> Optional.<PasswordlessUserAccount>empty()).get();
    }
This is {@link GroovyPasswordlessUserAccountCustomizer}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-passwordless-api/src/main/java/org/apereo/cas/impl/account/GroovyPasswordlessUserAccountCustomizer.java