Use JavaException interface in AsyncResultHandler