ProcessDefinition newPd = (ProcessDefinition)instance.getProcessDefinition().clone();
HumanActivity humanActivity = (HumanActivity)newPd.getActivity(tracingTag);
String newRoleName = "_delegateRole_" + humanActivity.getRole().getName() + "_" + humanActivity.getTracingTag();
Role newRole = new Role();
newRole.setName(newRoleName);
humanActivity.setRole(newRole);
newPd.registerToProcessDefinition(false, false);
changeProcessDefinition(instanceId, newPd);