add toMap from Java Observable