for ( Iterator iter = attributes.values().iterator(); iter.hasNext(); ) {
Attribute attribute = (Attribute) iter.next();
String name = attribute.getName();
if ( ! setAttributesSet.contains( name ) ) {
if ( attribute.isRequired() ) {
throw new MissingAttributeException(name);
}
// lets get the default value
Object value = null;
Expression expression = attribute.getDefaultValue();
if ( expression != null ) {