return to java class