Could probably change this to only import `mapAsJavaMap`.