asJavaMap is deprecated