Transforming Java POJOs and nested streams(Java 8), with possibility of null inner stream Say I have following java POJOs