stubs for java api