public boolean remove(P model) {
        if (null == model) return false;
        boolean removed = false;
        if (presentationModels.containsValue(model)) {
            removePresentationModelByType(model);
            presentationModels.remove(model.getId());
            for (A attribute : model.getAttributes()) {
                removeAttributeById(attribute);
                removeAttributeByQualifier(attribute);
                attribute.removePropertyChangeListener(Attribute.QUALIFIER_NAME, ATTRIBUTE_WORKER);
            }
            fireModelStoreChangedEvent(model, ModelStoreEvent.Type.REMOVED);
            removed = true;
        }
        return removed;
    }
public boolean remove ( P model ) { if ( null == model ) return false ; boolean removed = false ; if ( presentationModels . containsValue ( model ) ) { removePresentationModelByType ( model ) ; presentationModels . remove ( model . getId ( ) ) ; for ( A attribute : model . getAttributes ( ) ) { removeAttributeById ( attribute ) ; removeAttributeByQualifier ( attribute ) ; attribute . removePropertyChangeListener ( Attribute . QUALIFIER_NAME , ATTRIBUTE_WORKER ) ; } fireModelStoreChangedEvent ( model , ModelStoreEvent . Type . REMOVED ) ; removed = true ; } return removed ; }
Removes a presentation model from this store.<br/>

@param model the model to be removed from the store.
@return if the removePresentationModel operation was successful or not.