@SuppressWarnings("unchecked")
    public void setAttributes(Map<String, Attribute> attributes) {
        if (attributes == null) {
            this.attributes =
                    LazyMap.decorate(new HashMap<String, Attribute>(), new AttributeFactory());
        } else {
            this.attributes = attributes;
        }
    }
@ SuppressWarnings ( "unchecked" ) public void setAttributes ( Map < String , Attribute > attributes ) { if ( attributes == null ) { this . attributes = LazyMap . decorate ( new HashMap < String , Attribute > ( ) , new AttributeFactory ( ) ) ; } else { this . attributes = attributes ; } }
@param attributes the attributes to set