List<OperationMessage> operations = makePayloadOperations();
List<InvocationMessage> invocationMessages = makePayloadInvocations();
// Create the outer envelope message
AutoBean<RequestMessage> bean = f.request();
RequestMessage requestMessage = bean.as();
requestMessage.setRequestFactory(getRequestFactory().getFactoryTypeToken());
if (!invocationMessages.isEmpty()) {
requestMessage.setInvocations(invocationMessages);
}