I have 2 very similar JAXB objects Group with hundreds of fields, the only difference is that those object are in different packages, so the compiler prevents me of setting the value of another class. Here how it looks.
//employer sits in this package: com.beans.enrollment
bodyResponse.setEmployer((com.beans.external.groupresponse.EmployerType)
sgCreateQuoteRequest.getRequest().getEmployer());
So I get compilation error here and It will take me tons of time to manually get/set those fields.
Any ideas how to cast these objects ?