logger.debug ("Retrieving process list");
processSorter.clearModified();
ProcessDirectory pd = null;
try {
pd = wsc.getWorkflowService().processDirectory();
SortCriterion sortCriterion = null;
SortCriterion lastSortCriterion = null;
for (Iterator i = processSorter.getSortCriteria().iterator();
i.hasNext();) {
BeanSorter.SortCriterion bsc
= (BeanSorter.SortCriterion)i.next();
SortCriterion sc = null;
if (bsc.isAscending()) {
sc = new AscendingOrder(bsc.getProperty());
} else {
sc = new DescendingOrder(bsc.getProperty());
}