}
final Object maybeFieldData = e.getAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFieldData");
if (maybeFieldData instanceof FieldDefinition)
{
final FieldDefinition fieldDefinition = (FieldDefinition) maybeFieldData;
if (fieldDefinition.getDataFormat() != null)
{
e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FORMAT_STRING,
fieldDefinition.getDataFormat());
retval = true;
}
if (fieldDefinition.getNullString() != null)
{
e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, fieldDefinition.getNullString());
retval = true;
}
if ("label".equals(e.getElementTypeName()) && !StringUtils.isEmpty(fieldDefinition.getDisplayName()))
{
e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, fieldDefinition.getDisplayName());
}
}
return retval;