public static Source createSource(String name, String description, String sourcePublicationId, String miId) { Source source = new Source(); Names names = createNames(name, description); source.setNames(names); if (miId != null) { Xref miRef = createXrefPsiMi(miId); source.setXref(miRef); } if (sourcePublicationId != null) { source.setBibref(createBibrefPubmed(sourcePublicationId)); } return source; }
mSource.setXref( xrefConverter.fromJaxb( jSource.getXref() ) );
mSource.setXref( xrefConverter.fromJaxb( jSource.getXref() ) );
source.setXref(xref);