Java-API: Refactor usages to use only the new API
All programmatic users of API functionality should only use the new API, never access deeper functions directly.
All programmatic users of API functionality should only use the new API, never access deeper functions directly.