if (attribute != null)
{
ConditionType ctype = ConditionType.parse(attribute.getValue());
if (ConditionType.CONDITION_SCRIPT.equals(ctype))
{
transition.setCondition(new ScriptCondition(condition.getContent()));
}
transition.removeExtendedAttribute(XPDLGlobals.CONDITION_TYPE);
}
}