errorTypes);
log.error("Error occurred due to : " + sb.getMergedMessages());
}
}
FaultDescription faultDescription = new FaultDescription();
if(errorDocument != null)
{
faultDescription.setAny(errorDocument.getDocumentElement());
}
FatalFault fault = new FatalFault(sb.getMergedMessages(), faultDescription);
throw new Fault(fault);
}