public Boolean showRemoveButton() {
if (_showRemoveButton == null) {
boolean isRemoveable = ERXValueUtilities.booleanValueWithDefault(d2wContext().valueForKey("isEntityRemoveable"), false);
EODataSource ds = dataSource();
if (ds!= null && ds instanceof EODetailDataSource) {
EODetailDataSource dds = (EODetailDataSource)ds;
EOEnterpriseObject masterObj = (EOEnterpriseObject)dds.masterObject();
EOEntity masterEntity = ERXEOAccessUtilities.entityForEo(masterObj);
EORelationship relationship = masterEntity.relationshipNamed(dds.detailKey());
EORelationship reverseRelationship = relationship.inverseRelationship();
if(isRemoveable) {
if(reverseRelationship == null) {
_showRemoveButton = Boolean.TRUE;
} else {