if (context == null)
throw new RuntimeException("Context passed was NULL.");
InvokingServiceSucceededDocument activity = InvokingServiceSucceededDocument.Factory.newInstance();
AcknowledgeSuccessType activityType = activity.addNewInvokingServiceSucceeded();
// set the remote entity as receiver
if (context.getRemoteEntity() != null) {
activityType.addNewReceiver().set(context.getRemoteEntity().toBaseIDType());
} else {
logger.warn("Error in context that was passed. "
+ "there was no remote entity defined (requestReceiver=NULL)");
}
sendNotification(wtcontext, activity, descriptionAndAnnotation, "[Service finished successfully]");