3                   ! "#$%&'()*+ ,-./0 12 3 4 |5 `678 /9 .:; 2 2< .= .>? @A 9 B 9C 9D EF GHIJ B K BLM NOP BD Q NR STU 9VWX YZ [\ []^ W9 _` ^a ^b ^c ^de lfg `9 h ijk il "m no pq prs jtu jv w ixy z{ `| i} `~     x {  |       xmlOutputLorg/jdom/Document; collectionMapLjava/util/Map; Signature5Ljava/util/Map; communityMapcommunityService-Lorg/dspace/content/service/CommunityService;collectionService.Lorg/dspace/content/service/CollectionService;ePersonService+Lorg/dspace/eperson/service/EPersonService;()VCodeLineNumberTableLocalVariableTablethis%Lorg/dspace/administer/StructBuilder;main([Ljava/lang/String;)ViIoutLjava/io/BufferedWriter;eLjava/io/IOException;argv[Ljava/lang/String;parser*Lorg/apache/commons/cli/CommandLineParser;options Lorg/apache/commons/cli/Options;line$Lorg/apache/commons/cli/CommandLine;fileLjava/lang/String;epersonoutputcontextLorg/dspace/core/Context;documentLorg/w3c/dom/Document;firstLorg/w3c/dom/NodeList;elements[Lorg/jdom/Element;rootLorg/jdom/Element; StackMapTableug? Exceptionsusagevalidate(Lorg/w3c/dom/Document;)VerrLjava/lang/StringBuffer;tripZerrsJvalidateCommunities+(Lorg/w3c/dom/NodeList;I)Ljava/lang/String;posnLorg/w3c/dom/Node;namesubCommunitiescomErrs collectionscolErrs communitieslevelevalidateCollectionsloadXML*(Ljava/lang/String;)Lorg/w3c/dom/Document;filenamebuilder#Ljavax/xml/parsers/DocumentBuilder;getStringValue&(Lorg/w3c/dom/Node;)Ljava/lang/String;nodevaluehandleCommunitiesb(Lorg/dspace/core/Context;Lorg/w3c/dom/NodeList;Lorg/dspace/content/Community;)[Lorg/jdom/Element; communityLorg/dspace/content/Community;nlentryEntry InnerClassesLjava/util/Map$Entry;descriptionElement introElementcopyrightElementsidebarElementelementtn nameElementsubCommunityElementscollectionElementsjparentLocalVariableTypeTable;Ljava/util/Map$Entry;handleCollections collectionLorg/dspace/content/Collection; SourceFileStructBuilder.java "org/apache/commons/cli/PosixParserorg/apache/commons/cli/Optionsf o     org/dspace/core/Context      descriptionshort_descriptionintrointroductory_text copyrightcopyright_textsidebar side_bar_text license provenanceprovenance_description/import_structure/community   java/io/BufferedWriterjava/io/FileWriter  org/jdom/output/XMLOutputter   java/io/IOException java/lang/StringBuilderUnable to write to output file    RUsage: java StructBuilder -f -o -e wCommunities will be created from the top level, and a map of communities to handles will be returned in the output filejava/lang/StringBuffer=The following errors were encountered parsing the source XML 2No changes have been made to the DSpace instance  :-There are no top level communities in the source document   -The level  community in position ) does not contain exactly one name field  collection in position    java/io/File     org/w3c/dom/Node org/jdom/Element       java/util/Map$Entry java/lang/String   identifier         org/jdom/Documentimported_structure java/util/HashMap     #org/dspace/administer/StructBuilderjava/lang/Object(org/apache/commons/cli/CommandLineParser"org/apache/commons/cli/CommandLineorg/w3c/dom/Documentorg/w3c/dom/NodeListjava/lang/Exception(javax/xml/transform/TransformerException.javax/xml/parsers/ParserConfigurationExceptionorg/xml/sax/SAXExceptionorg/dspace/content/Communityjava/util/Iteratorjava/sql/SQLExceptionorg/dspace/content/Collection'org/dspace/authorize/AuthorizeException addOptionY(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options;parseY(Lorg/apache/commons/cli/Options;[Ljava/lang/String;)Lorg/apache/commons/cli/CommandLine; hasOption(C)ZgetOptionValue(C)Ljava/lang/String;java/lang/Systemexit(I)V)org/dspace/eperson/service/EPersonService findByEmailI(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/eperson/EPerson;setCurrentUser(Lorg/dspace/eperson/EPerson;)V java/util/Mapput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;org/apache/xpath/XPathAPIselectNodeList<(Lorg/w3c/dom/Node;Ljava/lang/String;)Lorg/w3c/dom/NodeList;getRootElement()Lorg/jdom/Element; addContent&(Lorg/jdom/Content;)Lorg/jdom/Element;(Ljava/lang/String;)V(Ljava/io/Writer;)V outputString'(Lorg/jdom/Document;)Ljava/lang/String;writecloseLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;toString()Ljava/lang/String;java/io/PrintStreamprintlncomplete,(Ljava/lang/String;)Ljava/lang/StringBuffer; getLength()Iitem(I)Lorg/w3c/dom/Node;java/lang/Integer(I)Ljava/lang/String;(I)Ljava/lang/StringBuilder;(javax/xml/parsers/DocumentBuilderFactory newInstance,()Ljavax/xml/parsers/DocumentBuilderFactory;newDocumentBuilder%()Ljavax/xml/parsers/DocumentBuilder;!javax/xml/parsers/DocumentBuilder&(Ljava/io/File;)Lorg/w3c/dom/Document; getNodeValue hasChildNodes()Z getFirstChild()Lorg/w3c/dom/Node; getNodeType()Strim+org/dspace/content/service/CommunityServicecreateW(Lorg/dspace/content/Community;Lorg/dspace/core/Context;)Lorg/dspace/content/Community; setMetadata^(Lorg/dspace/core/Context;Lorg/dspace/content/Community;Ljava/lang/String;Ljava/lang/String;)VentrySet()Ljava/util/Set; java/util/Setiterator()Ljava/util/Iterator;hasNextnext()Ljava/lang/Object;getKeygetValueupdate=(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;)V getHandle setAttribute8(Ljava/lang/String;Ljava/lang/String;)Lorg/jdom/Element; getMetadataD(Lorg/dspace/content/Community;Ljava/lang/String;)Ljava/lang/String;setText&(Ljava/lang/String;)Lorg/jdom/Element;,org/dspace/content/service/CollectionServiceX(Lorg/dspace/core/Context;Lorg/dspace/content/Community;)Lorg/dspace/content/Collection;_(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Ljava/lang/String;Ljava/lang/String;)VG(Lorg/dspace/content/DSpaceObject;Ljava/lang/String;)Ljava/lang/String;(Lorg/jdom/Element;)V0org/dspace/content/factory/ContentServiceFactory getInstance4()Lorg/dspace/content/factory/ContentServiceFactory;getCommunityService/()Lorg/dspace/content/service/CommunityService;getCollectionService0()Lorg/dspace/content/service/CollectionService;0org/dspace/eperson/factory/EPersonServiceFactory4()Lorg/dspace/eperson/factory/EPersonServiceFactory;getEPersonService-()Lorg/dspace/eperson/service/EPersonService;!   /*D   ڻYLYM,W,   W,   W+,* N:::-f -f:-e -e:-o -o:  Y::WWW !W"#W$W$W$W$ !W$"#W$%%W$&'W():  *: +,: 6      2-W .Y/Y01:  2Y3+45 6#: 89Y:;<<=>?71egij(k4m=o@pCqFsOuWx`zh}qy*7DQZdlwo   =@CFB*Z dv ln V W k 18@>8A> eBYCL=+DEW+FEW*()N-G+HEW8+I>-J: +EW=8+I>F (/9=DIPRV`d4e] [FD!=  »BYCM>:6*G*K:):G7`L:,9Y:M<NO<<=EW,PEW>Q):`J:  , EW>R):  `S:  , EW>^ ,I:f  %.9 B d k mv#%( B+%.v9/     >\    T BYCM>:6*G[*K:):G7`L:,9Y:M<NT<<=EW,PEW> ,I:>78 9 ;=%>.?9ABBdCkDm;sHwJ}M\ B+%H.?cx v s\  `UVL+WY*XYM,[\^` 7 -*ZL*[*\M,] ,Z_+lnpr!t+x -&+ 8+G`N6+G!`YQa:,b,*c:b*c:b*de+K:fg:hNij:  kl):  G#b* ml Kneb*opqrW`Ya:bstW-Wbs(`Ya:  bstW -Wbs(`Ya:  bstW -Wb!s(`Y a:  b!stW -Wb#s(`Y"a:  b#stW -WQ): * *: R): * u: 6     2-W 6     2-W -S-/ #'6BQ[ (0?J\ds~$*063+ <  J ~  B# [N[ Q H > ; )888 . <  ( 'Qp333(   /+G`N6+G`YRa:v*,w:v*dx+K:$fg:hNij:  kl):  G#v* ml Knxv*ypzrW`Ya:v{tW-Wv{(`Ya:  v{tW -Wv{(`Ya:  v{tW -Wv!{(`Y a:  v!{tW -Wv#{(`Y"a:  v#{tW -Wv%{(`Y%a:  v%{tW -Wv'{(`Y&a:  v'{tW -W-S-+ #/ > Hm~!"#&,(7)I*Q-`/k0}14678;=>?BDEF!I'-L~+ m<  7 k    #/HX  /// % m< M I Qp33333  7 oC|Y`Y}a~+Y$YbvILO'Q0R9S  j"