if (participant == null) {
return new ArrayList ();
}
Object resSel = null;
ParticipantType type = participant.getParticipantType();
Collection assigned = new ArrayList ();
if (type.isResourceSet()) {
resSel = "G:" + participant.getName();
} else if (type.isRole()) {
resSel = "R:" + participant.getName();
} else if (type.isHuman()) {
String crit = (String)participant.getResourceSelection();
if (crit != null && crit.startsWith ("!:currentUser")
&& principal != null) {
try {
WfResource res = asResource (principal);