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.setNames( namesConverter.fromJaxb( jSource.getNames() ) );
mSource.setNames( namesConverter.fromJaxb( jSource.getNames() ) );