catch (NoSuchFlowDefinitionException ex)
{
FlowDefinitionRegistry registry = getApplicationContext().getBean(FlowDefinitionRegistry.class);
String flows = Arrays.asList( registry.getFlowDefinitionIds()).toString();
NoSuchElementException exception = new NoSuchElementException("Did not find flow '" + ex.getFlowDefinitionId() + "' in " + flows);
exception.initCause(ex);
throw exception;
}
catch (IllegalArgumentException ex){
String message = ex.getMessage();
String prefix = "Unable to load class '";