if (getSpace().getSpaceInformationsCount() == 1) { throw new DomainException("space.must.have.at.least.one.space.information"); } super.setSpace((Space) null); deleteMaintainingReferenceToSpace();
if (getSpace().getSpaceInformationsCount() == 1) { throw new DomainException("space.must.have.at.least.one.space.information"); } super.setSpace(null); deleteMaintainingReferenceToSpace();
    public void delete() {        if (getSpace().getSpaceInformationsCount() == 1) {            throw new DomainException("space.must.have.at.least.one.space.information");        }        super.setSpace((Space) null);        deleteMaintainingReferenceToSpace();    }