public void validateTransferEntities(EntityManager em, TransferEntities body) throws DispositionReportFaultMessage {
// No null input
if (body == null)
throw new FatalErrorException(new ErrorMessage("errors.NullInput"));
org.uddi.custody_v3.TransferToken apiTransferToken = body.getTransferToken();
if (apiTransferToken == null)
throw new FatalErrorException(new ErrorMessage("errors.transfertoken.NullInput"));
KeyBag keyBag = body.getKeyBag();
if (keyBag == null)
throw new FatalErrorException(new ErrorMessage("errors.keybag.NullInput"));
List<String> apiKeyList = keyBag.getKey();
if (apiKeyList == null || apiKeyList.size() == 0)
throw new ValueNotAllowedException(new ErrorMessage("errors.keybag.NoInput"));