private ConceptImpl getConceptForReference(String id) { ConceptImpl concept = componentStore.getConcepts().get(Long.parseLong(id)); if (concept == null) { // Could throw exception here depending on implementation concept = new ConceptImpl(id); componentStore.addConcept(concept); } return concept; }
@Override public void createConcept( String conceptId, String effectiveTime, String active, String moduleId, String definitionStatusId) { componentStore.addConcept( new ConceptImpl( conceptId, effectiveTime, FactoryUtils.parseActive(active), moduleId, definitionStatusId)); }