public static ParticipantMode buildParticipantMode(String mode) {
if(Constants.PARTICIPANT_ORG_ROLE.equalsIgnoreCase(mode))
return new OrgRoleParticipantMode();
else if(Constants.PARTICIPANT_PROCESS_STARTER.equalsIgnoreCase(mode))
return new ProcStarterParticipantMode();
else if(Constants.PARTICIPANT_ACT_EXECUTER.equalsIgnoreCase(mode))
return new ActExecuterParticipantMode();
else if(Constants.PARTICIPANT_ACT_LOGIC.equalsIgnoreCase(mode))
return new ActLogicParticipantMode();
else if(Constants.PARTICIPANT_ACT_RELDATA.equalsIgnoreCase(mode))