Fixed issue with message callback with java