Rewritten Waila callback to java class.