public XmlRefsetConcept(Concept c) {
   setId(c.getSerialisedId());
   setTitle(c.getFullySpecifiedName());
   setEffectiveTime(c.getEffectiveTime());
   setActive(c.isActive());
   try {
     setHref(UrlBuilder.createConceptUrl(c));
   } catch (MalformedURLException e) {
     LOG.error("Unable to build concept href url, setting null: " + e.getMessage(), e);
     setHref(null);
   }
 }
  public void writeDatatypeProperties(final Concept c, String id)
      throws IOException, ParseException {
    // Label
    writer.write(
        id
            + ' '
            + PROPERTY_RDFS_LABEL
            + " \""
            + safe(c.getFullySpecifiedName())
            + '\"'
            + LANGUAGE
            + LINE_ENDING);

    // Active
    writer.write(
        id
            + ' '
            + PROPERTY_SNOMED_ACTIVE
            + " \""
            + (c.isActive() == true ? "true" : "false")
            + '\"'
            + XML_SCHEMA_DATATYPE_BOOLEAN
            + LINE_ENDING);

    // Module
    if (c.getModule() != null) {
      writer.write(
          id
              + ' '
              + PROPERTY_SNOMED_MODULE
              + ' '
              + NS_SNOMED_CONCEPT_IDENTIFIER
              + ':'
              + c.getModule().getSerialisedId()
              + LINE_ENDING);
    }

    // Status
    if (c.getStatus() != null) {
      writer.write(
          id
              + ' '
              + PROPERTY_SNOMED_STATUS
              + ' '
              + NS_SNOMED_CONCEPT_IDENTIFIER
              + ':'
              + c.getStatus().getSerialisedId()
              + LINE_ENDING);
    }

    // Effective Time
    writer.write(
        id
            + ' '
            + PROPERTY_SNOMED_EFFECTIVE_TIME
            + " \""
            + dateTimeFormatter.format(longTimeParser.parse(String.valueOf(c.getEffectiveTime())))
            + '\"'
            + XML_SCHEMA_DATATYPE_DATE
            + LINE_ENDING);
  }