ref #10189 split CdmApplicationController into repository and application part in...
[taxeditor.git] / eu.etaxonomy.taxeditor.printpublisher / src / main / java / eu / etaxonomy / taxeditor / printpublisher / handler / GeneratePdfHandler.java
index a49e4b47fe93b5c61ea9106240b1c9ca84db3f61..761dcd11ba38537d1281bccc76d2e40dc381100e 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.handler;
 
 import java.util.UUID;
@@ -27,11 +26,8 @@ import eu.etaxonomy.cdm.print.out.xml.XMLOutputModule;
 import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInput;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.printpublisher.wizard.DirectPublishingWizard;
-import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- * <p>GeneratePdfHandler class.</p>
- *
  * @author n.hoffmann
  * @created Jul 20, 2010
  */
@@ -52,7 +48,8 @@ public class GeneratePdfHandler extends AbstractHandler {
                        return null;
                }
 
-               configurator = PublishConfigurator.NewLocalInstance(CdmStore.getCurrentApplicationConfiguration());
+               //Note: was NewLocalInstance before
+               configurator = PublishConfigurator.NewRemoteInstance();
 
                Element taxonNodeElement = getTaxonNodeElement((TaxonEditorInput) input);
                configurator.addSelectedTaxonNodeElements(taxonNodeElement);