Java stubs