Java backend kresult fixing