I did this as I want to shortcut the retrieval of mimetype only if inputstream exists. Similarly I want to create a webresource only if both exist. This syntax seems slightly cleaner for that.
Should I switch this to a nested if structure?