dont reference java objects or a domain wide exception handler will null reference whenever it accesses a java object.