fixing class not found issue with xmlbeans
debugging and logging
buggy handleCreateApplicationMessage method