EndpointReference from = null;
ReferenceParameters parameters = null;
if (callbackAddress != null ||
callbackID != null ||
conversationID != null) {
from = new EndpointReferenceImpl(null);
parameters = from.getReferenceParameters();
msg.setFrom(from);
}
// set the reference parameters into the "From" EPR
if (callbackAddress != null) {
parameters.setCallbackReference(new EndpointReferenceImpl(callbackAddress));
}
if (callbackID != null) {
parameters.setCallbackID(callbackID);
}
if (conversationID != null) {