Java side