throw new WPSException("No such process: " + processName);
}
// execute the process in the same thread as the caller
Process p = pf.create(processName);
Map<String, Object> result = p.execute(inputs, listener);
if (listener.exception != null) {
throw new ProcessException("Process failed: " + listener.exception.getMessage(),
listener.exception);
}
return result;