update with Java API