Update Java binding for new API