diff --git a/layoutparser-service/layoutparser-service-processor/src/main/java/com/knecon/fforesight/service/layoutparser/processor/LayoutParsingService.java b/layoutparser-service/layoutparser-service-processor/src/main/java/com/knecon/fforesight/service/layoutparser/processor/LayoutParsingService.java index 7236dec..a1c27bb 100644 --- a/layoutparser-service/layoutparser-service-processor/src/main/java/com/knecon/fforesight/service/layoutparser/processor/LayoutParsingService.java +++ b/layoutparser-service/layoutparser-service-processor/src/main/java/com/knecon/fforesight/service/layoutparser/processor/LayoutParsingService.java @@ -36,7 +36,6 @@ public class LayoutParsingService { private final ClassificationService classificationService; private final SectionsBuilderService sectionsBuilderService; private final DocumentGraphFactory documentGraphFactory; - private final DocumentDataMapper documentDataMapper; public LayoutParsingFinishedEvent parseLayoutAndSaveFilesToStorage(LayoutParsingRequest layoutParsingRequest) { @@ -81,7 +80,7 @@ public class LayoutParsingService { DocumentGraph documentGraph = parseLayout(originDocument, imageServiceResponse, tableServiceResponse); try { - layoutParsingStorageService.storeDocumentData(layoutParsingRequest, documentDataMapper.toDocumentData(documentGraph)); + layoutParsingStorageService.storeDocumentData(layoutParsingRequest, DocumentDataMapper.toDocumentData(documentGraph)); } catch (IOException e) { log.error("Parsed Document files could not be saved!"); log.error(e.getMessage());