update Java API with new fields support