Removed a null initialization of an Optional.
Declare member variables as final in GraphMLWriter.