[MOD] Changed session behavior and refactored guava's Optional to
Java8's Optional.
[MOD] Adapted example-project.