NdkEntityFactory { public Import createMonographImport( ModsDefinition volumeMods, MixType mix, ErrorHandler status, boolean eBorn ) throws SAXException { Monograph m = new Monograph(); m.setCcnb(ResolverUtils.getIdentifier("ccnb", volumeMods)); m.setDigitalBorn(eBorn); m.setIsbn(ResolverUtils.getIdentifier("isbn", volumeMods)); m.setOtherOriginator(ResolverUtils.getOriginator("personal", false, volumeMods)); m.setPrimaryOriginator(ResolverUtils.getPrimaryOriginator(volumeMods)); m.setPublication(ResolverUtils.getPublication(volumeMods)); Monograph.TitleInfo titleInfo = new Monograph.TitleInfo(); TitleInfoDefinition modsTitle = ResolverUtils.getTitleInfo(volumeMods); if (modsTitle != null) { titleInfo.setTitle(ResolverUtils.getStringPlusLanguage(modsTitle.getTitle())); titleInfo.setSubTitle(ResolverUtils.getStringPlusLanguage(modsTitle.getSubTitle())); } m.setTitleInfo(titleInfo); Import imp = new Import(); imp.setMonograph(m); DigitalDocument digitalDocument; if (eBorn) { digitalDocument = new DigitalDocumentBuilder().setUuid(ResolverUtils.getIdentifier("uuid", volumeMods)).build(); } else{ digitalDocument = new DigitalDocumentBuilder().setUuid(ResolverUtils.getIdentifier("uuid", volumeMods)).setMix(mix).build(); } imp.setDigitalDocument(digitalDocument); debugXml(imp); ResolverXmlUtils.validate(imp, status); return imp; }  Import createMultipartMonographImport(
            ModsDefinition titleMods,  ModsDefinition volumeMods,
            MixType mix, ErrorHandler status
            ); Import createMonographImport(
            ModsDefinition volumeMods, MixType mix, ErrorHandler status, boolean eBorn
            ); Import createMusicDocumentImport(ModsDefinition documentMods, ErrorHandler status); Import createPeriodicalIssueImport(
            ModsDefinition titleMods, ModsDefinition volumeMods,
            ModsDefinition issueMods, MixType mix, ErrorHandler status, boolean eBorn
            ); Import createCartographicImport(
            ModsDefinition titleMods, MixType mix, ErrorHandler status
            ); Import createSheetMusicImport(
            ModsDefinition titleMods, MixType mix, ErrorHandler status
            ); Import createOtherEntityImport(
            ModsDefinition titleMods, String documentType, MixType mix, ErrorHandler status, boolean eBorn
            );  }
@Test public void testCreateMonographImport() throws Exception { ModsDefinition monographMods = mods("registration/ndkMonograph.xml"); MixType mix = mix("registration/mix.xml"); Import imp = factory.createMonographImport(monographMods, mix, null, false); assertNotNull(imp); Monograph mv = imp.getMonograph(); assertNotNull(mv); assertEquals("cnb000389898", mv.getCcnb()); assertNull(mv.getIsbn()); assertEquals("Průvodce českým rájem", mv.getTitleInfo().getTitle()); assertEquals("stopadesát výletů z Turnova ; [Jičín a okolí]", mv.getTitleInfo().getSubTitle()); assertNotNull(imp.getDigitalDocument()); }