try {
Class clazz = Class.forName(className);
condition = (Condition) clazz.newInstance();
condition.setExpression(expression);
} catch (ClassNotFoundException e) {
throw new WorkflowException(e);
} catch (InstantiationException e) {
throw new WorkflowException(e);
} catch (IllegalAccessException e) {
throw new WorkflowException(e);
}
return condition;
}