if (definition instanceof JpdlProcessDefinition) {
List<? extends Activity> list = ((JpdlProcessDefinition) definition).getActivities();
for (Activity activity : list) {
if (activity instanceof ActivityImpl) {
ActivityBehaviour activityBehaviour = ((ActivityImpl) activity).getActivityBehaviour();
if (activityBehaviour instanceof UserCodeActivityBehaviour) {
// check the assignment handler .. ?
((TaskActivity) activityBehaviour).getTaskDefinition().getAssignmentHandlerReference();
results.add(activity.getName());