to.setType(receivingPartyInfo.getPartyId().get(0).getType());
to.setValue(receivingPartyInfo.getPartyId().get(0).getValue());
messageHeader.getTo().getPartyId().add(to);
messageHeader.getTo().setRole(receivingPartyInfo.getCollaborationRole().get(0).getRole().getName());
messageHeader.setService(new Service());
messageHeader.getService().setType(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getService().getType());
messageHeader.getService().setValue(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getService().getValue());
messageHeader.setAction(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getCanSend().get(0).getThisPartyActionBinding().getAction());
messageHeader.setMessageData(new MessageData());