SLING-12239 : Create string representation of processing component configuration only once
diff --git a/src/main/java/org/apache/sling/rewriter/impl/ProcessingComponentConfigurationImpl.java b/src/main/java/org/apache/sling/rewriter/impl/ProcessingComponentConfigurationImpl.java
index 5d15304..1b2b121 100644
--- a/src/main/java/org/apache/sling/rewriter/impl/ProcessingComponentConfigurationImpl.java
+++ b/src/main/java/org/apache/sling/rewriter/impl/ProcessingComponentConfigurationImpl.java
@@ -42,6 +42,9 @@
     /** The configuration map. */
     private final ValueMap configuration;
 
+    /** The description */
+    private final String descText;
+
     /**
      * Create a new configuration.
      * @param type The type of the component.
@@ -51,6 +54,7 @@
         this.type = type;
         this.configuration = (config == null ? EMPTY_CONFIG : new ValueMapDecorator(new HashMap<>(config)));
         this.configuration.remove("jcr:primaryType");
+        this.descText = "Config(type=".concat(this.type).concat(", config=").concat(this.getConfigurationString()).concat(")");
     }
 
     /**
@@ -88,7 +92,7 @@
 
     @Override
     public String toString() {
-        return "Config(type=".concat(this.type).concat(", config=").concat(this.getConfigurationString()).concat(")");
+        return this.descText;
     }
 
     void printConfiguration(final PrintWriter pw) {