try {
SourceDescription gedxSourceDescription = new SourceDescription();
gedxSourceDescription.setId(dqSource.getId());
if (dqSource.getAbbreviation() != null) {
gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getAbbreviation())));
}
else if (dqSource.getTitle() != null) {
gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getTitle())));
}
org.gedcomx.source.SourceCitation citation = new org.gedcomx.source.SourceCitation();
citation.setCitationTemplate(new ResourceReference(URI.create("gedcom5:citation-template")));
citation.setFields(new ArrayList<CitationField>());