* @throws WorkflowException when creating the condition failed.
*/
protected Condition createCondition(String className, String expression)
throws WorkflowException {
Condition condition;
try {
Class clazz = Class.forName(className);
condition = (Condition) clazz.newInstance();
ContainerUtil.enableLogging(condition, getLogger());
condition.setExpression(expression);
} catch (ClassNotFoundException e) {
throw new WorkflowException(e);
} catch (InstantiationException e) {
throw new WorkflowException(e);
} catch (IllegalAccessException e) {