Java api upgrade