@Override public void flush() { for ( String name: getNames() ) { Object attribute = get(name); boolean dirty = attribute!=null && ( Contexts.isAttributeDirty(attribute) || Seam.isEntityClass( attribute.getClass() ) ); if ( dirty ) { set(name, attribute); } } }