Switch to side-by-side view

--- a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/CSVEntry.java
+++ b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/CSVEntry.java
@@ -17,6 +17,9 @@
  */
 
 package net.timbusproject.extractors.modules.tavernaextractor;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 
 public class CSVEntry {
 
@@ -80,15 +83,17 @@
 
     public void setNAME(String nAME) {
 
+        NAME = nAME;
+
         // customize name
-        int beginIndex = nAME.indexOf("[");
-        int endIndex = nAME.indexOf("]");
-
-        if (beginIndex > 0 && endIndex > beginIndex) {
-            NAME = nAME.substring(beginIndex + 1, endIndex);
-        } else {
-            NAME = nAME;
-        }
+//        int beginIndex = nAME.indexOf("[");
+//        int endIndex = nAME.indexOf("]");
+//
+//        if (beginIndex > 0 && endIndex > beginIndex) {
+//            NAME = nAME.substring(beginIndex + 1, endIndex);
+//        } else {
+//            NAME = nAME;
+//        }
     }
 
     public String getMETHOD() {
@@ -193,6 +198,25 @@
 
     public void setFORMAT_VERSION(String fORMAT_VERSION) {
         FORMAT_VERSION = fORMAT_VERSION;
+    }
+
+    public String getNameForExtensionUsage(){
+
+        String _name = "EMPTY";
+
+        //only retrieve the port name part
+        // [processorName][portName]-randomNumber.file -> portName
+
+        Matcher m = Pattern.compile("\\[[^\\]]*\\]").matcher(NAME);
+        int group = 0;
+        while(m.find()) {
+            if(group == 1) {
+                _name = m.group().replaceAll("\\[", "").replaceAll("\\]","");
+                return _name;
+            }
+            group++;
+        }
+        return _name;
     }
 
     @Override