removeAttribute(name);
}
@Override
public String toString() {
MapBuilder mb = new MapBuilder();
MapBuilder attrsBuilder = new MapBuilder().setPrintCount(true).setSortKeys(true);
mb.append("sessionID", sessionID);
mb.append("model", model);
mb.append("isNew", isNew);
mb.append("invalidated", invalidated);
attrsBuilder.appendAll(attrs);
attrsBuilder.remove(modelKey);
mb.append("attrs", attrsBuilder);
return new ToStringBuilder().append("HttpSession").append(mb).toString();
}