support for java api