# processLoanNotificationEmailProcessorConfig

Crie o método e insira o construtor e implemente o método process! Ficará assim:

```java
@Configuration
public class processLoanNotificationEmailProcessorConfig {

    @Bean
    public ItemProcessor<UserBookLoan, Mail> processLoanNotificationEmailProcessor() {
        return new ItemProcessor<UserBookLoan, Mail>() {
            @Override
            public Mail process(UserBookLoan loan) throws Exception {
                return null;
            }
        }
    }
}
```

Esse process ele recebe cada item do `UserBookLoan` (todos os dados do empréstimo) e retorna um `Mail`. Ou seja, um objeto pronto para ser enviado.

**Método final**

<figure><img src="https://2670626841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyw6frr3PrRH4qMx0AAtx%2Fuploads%2FtVdGbYpabx6CwKXDU8T4%2Fimage.png?alt=media&#x26;token=fe5370b2-c5ef-4de2-9c72-0f4eea49c792" alt=""><figcaption></figcaption></figure>
