java 8: how to get object in a list matching with a property value and set during stream code example
Example: java 8 find in list by property
Optional<Person> matchingObject = objects.stream().
filter(p -> p.email().equals("testemail")).
findFirst();