InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), receiver);
activityType.addNewReceiver().set(receiver.toBaseIDType());
// add header and body fields
if (header != null || body != null) {
InvocationMessageType request = activityType.addNewRequest();
if (header != null)
request.addNewHeader().set(header);
if (body != null)
request.addNewBody().set(body);
}
sendNotification(context, activity, descriptionAndAnnotation, "[Service is invoked]");
return invocationContext;
}