if (getProperty(PROP_TYPE) == null && log.isErrorEnabled()) { log.error("Please report bug 1304: Using CSMART " + CSMART.writeDebug() + " just finished setting Type and getProperty(type) returns null. Initializing from RelationshipData: " + relationship, new Throwable()); }
  public void initProperties() {    if (relationship == null) {       if (log.isErrorEnabled()) {	log.error("Report under bug 1304: " + this + " using CSMART " + CSMART.writeDebug() + " got null relationship to create from", new Throwable());      }    } else if (relationship.getType() == null) {      if (log.isErrorEnabled()) {	log.error("Report under bug 1304: " + this + " using CSMART " + CSMART.writeDebug() + " got null relationship type to create from in relationship: " + relationship, new Throwable());      }    }    propType = addProperty(PROP_TYPE, relationship.getType());    propType.setToolTip(PROP_TYPE_DESC);    propRole = addProperty(PROP_ROLE, relationship.getRole());    propRole.setToolTip(PROP_ROLE_DESC);    propItem = addProperty(PROP_ITEM, relationship.getItemId());    propItem.setToolTip(PROP_ITEM_DESC);    propTypeId = addProperty(PROP_TYPEID, relationship.getTypeId());    propTypeId.setToolTip(PROP_TYPEID_DESC);    propSupported = addProperty(PROP_SUPPORTED, relationship.getSupported());    propSupported.setToolTip(PROP_SUPPORTED_DESC);    DateFormat format = DateFormat.getInstance();    propStartTime = addProperty(PROP_STARTTIME,                             format.format(new Date(relationship.getStartTime())));    propStartTime.setToolTip(PROP_STARTTIME_DESC);    propStopTime = addProperty(PROP_STOPTIME,                            format.format(new Date(relationship.getEndTime())));    propStopTime.setToolTip(PROP_STOPTIME_DESC);  }