You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2025/03/28 14:44:42 UTC

(sling-org-apache-sling-servlets-post) branch feature/SLING-12726-parent-62 created (now 141d2d5)

This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a change to branch feature/SLING-12726-parent-62
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-post.git


      at 141d2d5  SLING-12726 apply spotless formatting

This branch includes the following new commits:

     new 57db970  SLING-12726 Update to Parent 62
     new 141d2d5  SLING-12726 apply spotless formatting

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(sling-org-apache-sling-servlets-post) 02/02: SLING-12726 apply spotless formatting

Posted by ss...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch feature/SLING-12726-parent-62
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-post.git

commit 141d2d594ae7236bb41b5484a30ad487c5f9e678
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Fri Mar 28 15:44:24 2025 +0100

    SLING-12726 apply spotless formatting
---
 pom.xml                                            | 128 +++---
 .../servlets/post/AbstractJakartaPostResponse.java |  43 +-
 .../post/AbstractJakartaPostResponseWrapper.java   |  27 +-
 .../sling/servlets/post/AbstractPostOperation.java | 185 +++++----
 .../sling/servlets/post/AbstractPostResponse.java  |  47 +--
 .../servlets/post/AbstractPostResponseWrapper.java |  31 +-
 .../servlets/post/AbstractSlingPostOperation.java  |  49 ++-
 .../apache/sling/servlets/post/HtmlResponse.java   |  44 +-
 .../apache/sling/servlets/post/JSONResponse.java   |  85 ++--
 .../sling/servlets/post/JakartaHtmlResponse.java   |  41 +-
 .../sling/servlets/post/JakartaJSONResponse.java   |  86 ++--
 .../servlets/post/JakartaNodeNameGenerator.java    |  31 +-
 .../sling/servlets/post/JakartaPostOperation.java  |   7 +-
 .../sling/servlets/post/JakartaPostResponse.java   |   6 +-
 .../servlets/post/JakartaPostResponseCreator.java  |  26 +-
 .../apache/sling/servlets/post/Modification.java   |   6 +-
 .../sling/servlets/post/ModificationType.java      |   2 +-
 .../sling/servlets/post/NodeNameGenerator.java     |  31 +-
 .../apache/sling/servlets/post/PostOperation.java  |   4 +-
 .../apache/sling/servlets/post/PostResponse.java   |  10 +-
 .../sling/servlets/post/PostResponseCreator.java   |  26 +-
 .../post/PostResponseWithErrorHandling.java        |  56 +--
 .../servlets/post/SlingJakartaPostProcessor.java   |   3 +-
 .../sling/servlets/post/SlingPostConstants.java    |   8 +-
 .../sling/servlets/post/SlingPostOperation.java    |   4 +-
 .../sling/servlets/post/SlingPostProcessor.java    |   3 +-
 .../servlets/post/VersioningConfiguration.java     |  28 +-
 .../PreconditionViolatedPersistenceException.java  |  30 +-
 .../exceptions/TemporaryPersistenceException.java  |  15 +-
 .../servlets/post/exceptions/package-info.java     |   1 -
 .../impl/ErrorHandlingPostResponseWrapper.java     |  28 +-
 .../post/impl/PostOperationProxyProvider.java      |  29 +-
 .../sling/servlets/post/impl/SlingPostServlet.java | 448 +++++++++++----------
 .../sling/servlets/post/impl/helper/Chunk.java     |  27 +-
 .../post/impl/helper/ChunkCleanUpTask.java         |  76 ++--
 .../servlets/post/impl/helper/DateParser.java      |  38 +-
 .../post/impl/helper/DefaultNodeNameGenerator.java |  50 +--
 .../post/impl/helper/HtmlPostResponseProxy.java    |   7 +-
 .../post/impl/helper/HtmlResponseProxy.java        |  11 +-
 .../servlets/post/impl/helper/JCRSupport.java      | 130 +++---
 .../servlets/post/impl/helper/JCRSupportImpl.java  | 217 +++++-----
 .../servlets/post/impl/helper/NodeNameFilter.java  |  35 +-
 .../servlets/post/impl/helper/ReferenceParser.java |  32 +-
 .../servlets/post/impl/helper/RequestProperty.java |  38 +-
 .../impl/helper/ResourceIteratorInputStream.java   |  50 +--
 .../post/impl/helper/SlingFileUploadHandler.java   | 203 +++++-----
 .../impl/helper/SlingPropertyValueHandler.java     | 134 +++---
 .../servlets/post/impl/helper/StreamedChunk.java   | 121 +++---
 .../impl/operations/AbstractCopyMoveOperation.java |  72 ++--
 .../impl/operations/AbstractCreateOperation.java   | 364 ++++++++---------
 .../impl/operations/AbstractPostOperation.java     | 167 ++++----
 .../post/impl/operations/CheckinOperation.java     |  42 +-
 .../post/impl/operations/CheckoutOperation.java    |  42 +-
 .../post/impl/operations/CopyOperation.java        |  38 +-
 .../post/impl/operations/DeleteOperation.java      |  52 +--
 .../post/impl/operations/ImportOperation.java      | 256 ++++++------
 .../post/impl/operations/ModifyOperation.java      |  95 ++---
 .../post/impl/operations/MoveOperation.java        |  42 +-
 .../post/impl/operations/NopOperation.java         |   8 +-
 .../post/impl/operations/RestoreOperation.java     |  48 +--
 .../impl/operations/StreamedUploadOperation.java   |  75 ++--
 .../impl/wrapper/JakartaToJavaxPostProcessor.java  |  29 +-
 .../impl/wrapper/JakartaToJavaxPostResponse.java   |  33 +-
 .../wrapper/JavaxToJakartaNodeNameGenerator.java   |  38 +-
 .../impl/wrapper/JavaxToJakartaPostOperation.java  |  40 +-
 .../impl/wrapper/JavaxToJakartaPostResponse.java   |  32 +-
 .../wrapper/JavaxToJakartaPostResponseCreator.java |  26 +-
 .../wrapper/JavaxToSlingJakartaPostProcessor.java  |  28 +-
 .../apache/sling/servlets/post/package-info.java   |   1 -
 .../servlets/post/AbstractPostOperationTest.java   |  45 ++-
 .../sling/servlets/post/HtmlResponseTest.java      |  37 +-
 .../servlets/post/JakartaHtmlResponseTest.java     |  35 +-
 .../servlets/post/JakartaJsonResponseTest.java     |  72 ++--
 .../sling/servlets/post/JsonResponseTest.java      |  54 ++-
 .../servlets/post/impl/NodeNameFilterTest.java     |  57 +--
 .../servlets/post/impl/RequestPropertyTest.java    |  52 +--
 .../servlets/post/impl/SlingPostServletTest.java   | 170 ++++----
 .../impl/helper/DefaultNodeNameGeneratorTest.java  |  51 ++-
 .../post/impl/helper/HtmlResponseProxyTest.java    |  75 ++--
 .../impl/helper/MockSlingHttpServlet3Request.java  |  50 +--
 .../impl/helper/MockSlingHttpServlet3Response.java |  34 +-
 .../helper/ResourceIteratorInputStreamTest.java    |  26 +-
 .../SlingPropertyValueHandlerAutotypeTest.java     |  37 +-
 .../impl/helper/SlingPropertyValueHandlerTest.java |  44 +-
 .../post/impl/helper/StreamedChunkTest.java        |  16 +-
 .../operations/AbstractCreateOperationTest.java    |   9 +-
 .../post/impl/operations/CopyOperationTest.java    |  36 +-
 .../servlets/post/impl/operations/MockPart.java    |  17 +-
 .../post/impl/operations/MockRealResource.java     |  19 +-
 .../post/impl/operations/MockValueMap.java         |   7 +-
 .../operations/StreamingUploadOperationTest.java   | 318 ++++++++-------
 91 files changed, 2790 insertions(+), 2736 deletions(-)

diff --git a/pom.xml b/pom.xml
index db93cb6..170009e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,19 +27,17 @@
     </parent>
 
     <artifactId>org.apache.sling.servlets.post</artifactId>
-    <packaging>jar</packaging>
     <version>3.0.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
 
     <name>Apache Sling Servlets POST</name>
-    <description>
-        Provides default POST servlets.
-    </description>
+    <description>Provides default POST servlets.</description>
 
     <scm>
         <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-post.git</connection>
         <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-post.git</developerConnection>
-        <url>https://github.com/apache/sling-org-apache-sling-servlets-post.git</url>
         <tag>HEAD</tag>
+        <url>https://github.com/apache/sling-org-apache-sling-servlets-post.git</url>
     </scm>
 
     <properties>
@@ -47,67 +45,6 @@
         <project.build.outputTimestamp>2023-10-05T11:03:56Z</project.build.outputTimestamp>
         <sling.java.version>17</sling.java.version>
     </properties>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>biz.aQute.bnd</groupId>
-                <artifactId>bnd-maven-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>biz.aQute.bnd</groupId>
-                <artifactId>bnd-baseline-maven-plugin</artifactId>
-            </plugin>
-           <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-shade-plugin</artifactId>
-                <version>3.6.0</version>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>shade</goal>
-                        </goals>
-                        <configuration>
-                            <createSourcesJar>true</createSourcesJar>
-                            <shadeSourcesContent>true</shadeSourcesContent>
-                            <relocations>
-                                <relocation>
-                                    <pattern>org.apache.jackrabbit.util</pattern>
-                                    <shadedPattern>org.apache.sling.servlets.post.impl.jackrabbit</shadedPattern>
-                                </relocation>
-                                <relocation>
-                                    <pattern>org.apache.sling.jcr.contentparser</pattern>
-                                    <shadedPattern>org.apache.sling.servlets.post.impl.contentparser</shadedPattern>
-                                </relocation>
-                            </relocations>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.rat</groupId>
-              <artifactId>apache-rat-plugin</artifactId>
-              <configuration>
-                <excludes>
-                  <exclude>src/main/resources/org/apache/sling/servlets/post/HtmlResponse.html</exclude>
-                  <exclude>src/main/resources/org/apache/sling/servlets/post/HtmlNoGoBackResponse.html</exclude>
-                  <exclude>developer-tests/README.md</exclude>
-                  <exclude>Protocols.md</exclude>
-                </excludes>
-              </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-                <configuration>
-                    <excludePackageNames>
-                        org.apache.sling.servlets.post.impl
-                    </excludePackageNames>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
     <dependencies>
         <dependency>
             <groupId>org.osgi</groupId>
@@ -230,4 +167,63 @@
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-baseline-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <version>3.6.0</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <createSourcesJar>true</createSourcesJar>
+                            <shadeSourcesContent>true</shadeSourcesContent>
+                            <relocations>
+                                <relocation>
+                                    <pattern>org.apache.jackrabbit.util</pattern>
+                                    <shadedPattern>org.apache.sling.servlets.post.impl.jackrabbit</shadedPattern>
+                                </relocation>
+                                <relocation>
+                                    <pattern>org.apache.sling.jcr.contentparser</pattern>
+                                    <shadedPattern>org.apache.sling.servlets.post.impl.contentparser</shadedPattern>
+                                </relocation>
+                            </relocations>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>src/main/resources/org/apache/sling/servlets/post/HtmlResponse.html</exclude>
+                        <exclude>src/main/resources/org/apache/sling/servlets/post/HtmlNoGoBackResponse.html</exclude>
+                        <exclude>developer-tests/README.md</exclude>
+                        <exclude>Protocols.md</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <excludePackageNames>org.apache.sling.servlets.post.impl</excludePackageNames>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponse.java b/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponse.java
index 0b22d55..f897f56 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponse.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -114,11 +116,8 @@ public abstract class AbstractJakartaPostResponse implements JakartaPostResponse
      * {@inheritDoc}
      */
     public boolean isCreateRequest() {
-        final Boolean isCreateRequest = getProperty(PN_IS_CREATED,
-            Boolean.class);
-        return (isCreateRequest != null)
-                ? isCreateRequest.booleanValue()
-                : false;
+        final Boolean isCreateRequest = getProperty(PN_IS_CREATED, Boolean.class);
+        return (isCreateRequest != null) ? isCreateRequest.booleanValue() : false;
     }
 
     /**
@@ -276,7 +275,6 @@ public abstract class AbstractJakartaPostResponse implements JakartaPostResponse
         onChange("copied", srcPath, dstPath);
     }
 
-
     /**
      * prepares the response properties
      */
@@ -315,7 +313,6 @@ public abstract class AbstractJakartaPostResponse implements JakartaPostResponse
                 }
             }
         }
-
     }
 
     /**
@@ -362,7 +359,7 @@ public abstract class AbstractJakartaPostResponse implements JakartaPostResponse
      * determines if the referer has a proper referer including protocol
      * @return true if HTTP or HTTPS protocol information is available in the referer
      */
-    protected boolean isSafeReferer(){
+    protected boolean isSafeReferer() {
         String referer = getReferer();
         if (referer.startsWith("http://") || referer.startsWith("https://")) {
             return true;
@@ -382,10 +379,8 @@ public abstract class AbstractJakartaPostResponse implements JakartaPostResponse
      * @param setStatus whether to set the status code on the response
      * @throws IOException if an i/o exception occurs
      */
-    public final void send(HttpServletResponse response, boolean setStatus)
-            throws IOException {
+    public final void send(HttpServletResponse response, boolean setStatus) throws IOException {
         prepare(response, setStatus);
         doSend(response);
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponseWrapper.java b/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponseWrapper.java
index 644a5da..e7fa95a 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponseWrapper.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractJakartaPostResponseWrapper.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -154,5 +156,4 @@ public abstract class AbstractJakartaPostResponseWrapper implements JakartaPostR
     public void send(HttpServletResponse response, boolean setStatus) throws IOException {
         getWrapped().send(response, setStatus);
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java b/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
index e62e275..a7c06ba 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
@@ -1,21 +1,31 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
+import javax.jcr.Item;
+import javax.jcr.ItemNotFoundException;
+import javax.jcr.Node;
+import javax.jcr.NodeIterator;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+import javax.servlet.http.HttpServletResponse;
+
 import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.HashMap;
@@ -27,14 +37,6 @@ import java.util.Map;
 import java.util.NoSuchElementException;
 import java.util.Set;
 
-import javax.jcr.Item;
-import javax.jcr.ItemNotFoundException;
-import javax.jcr.Node;
-import javax.jcr.NodeIterator;
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
-import javax.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceResolver;
@@ -79,9 +81,9 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @param processors The array of processors
      */
     @Override
-    public void run(final SlingHttpServletRequest request,
-                    final PostResponse response,
-                    final SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
+    public void run(
+            final SlingHttpServletRequest request, final PostResponse response, final SlingPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
         final Session session = request.getResourceResolver().adaptTo(Session.class);
 
         final VersioningConfiguration versionableConfiguration = getVersioningConfiguration(request);
@@ -126,13 +128,15 @@ public abstract class AbstractPostOperation implements PostOperation {
                 }
             }
 
-            // fail if any of the base paths (before the postfix) which had a postfix are contained in the modification set
+            // fail if any of the base paths (before the postfix) which had a postfix are contained in the modification
+            // set
             if (modificationSourcesContainingPostfix.size() > 0) {
                 for (final Map.Entry<String, String> sourceToCheck : modificationSourcesContainingPostfix.entrySet()) {
                     if (allModificationSources.contains(sourceToCheck.getKey())) {
-                        response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
-                                "Postfix-containing path " + sourceToCheck.getValue() +
-                                " contained in the modification list. Check configuration.");
+                        response.setStatus(
+                                HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
+                                "Postfix-containing path " + sourceToCheck.getValue()
+                                        + " contained in the modification list. Check configuration.");
                         return;
                     }
                 }
@@ -141,24 +145,34 @@ public abstract class AbstractPostOperation implements PostOperation {
             final Set<String> nodesToCheckin = new LinkedHashSet<>();
 
             // set changes on html response
-            for(Modification change : changes) {
-                switch ( change.getType() ) {
-                    case MODIFY : response.onModified(change.getSource()); break;
-                    case DELETE : response.onDeleted(change.getSource()); break;
-                    case MOVE   : response.onMoved(change.getSource(), change.getDestination()); break;
-                    case COPY   : response.onCopied(change.getSource(), change.getDestination()); break;
-                    case CREATE :
+            for (Modification change : changes) {
+                switch (change.getType()) {
+                    case MODIFY:
+                        response.onModified(change.getSource());
+                        break;
+                    case DELETE:
+                        response.onDeleted(change.getSource());
+                        break;
+                    case MOVE:
+                        response.onMoved(change.getSource(), change.getDestination());
+                        break;
+                    case COPY:
+                        response.onCopied(change.getSource(), change.getDestination());
+                        break;
+                    case CREATE:
                         response.onCreated(change.getSource());
                         if (versionableConfiguration.isCheckinOnNewVersionableNode()) {
                             nodesToCheckin.add(change.getSource());
                         }
                         break;
-                    case ORDER  : response.onChange("ordered", change.getSource(), change.getDestination()); break;
-                    case CHECKOUT :
+                    case ORDER:
+                        response.onChange("ordered", change.getSource(), change.getDestination());
+                        break;
+                    case CHECKOUT:
                         response.onChange("checkout", change.getSource());
                         nodesToCheckin.add(change.getSource());
                         break;
-                    case CHECKIN :
+                    case CHECKIN:
                         response.onChange("checkin", change.getSource());
                         nodesToCheckin.remove(change.getSource());
                         break;
@@ -171,7 +185,7 @@ public abstract class AbstractPostOperation implements PostOperation {
 
             if (!isSkipCheckin(request)) {
                 // now do the checkins
-                for(String checkinPath : nodesToCheckin) {
+                for (String checkinPath : nodesToCheckin) {
                     if (checkin(request.getResourceResolver(), checkinPath)) {
                         response.onChange("checkin", checkinPath);
                     }
@@ -189,11 +203,9 @@ public abstract class AbstractPostOperation implements PostOperation {
                     request.getResourceResolver().revert();
                 }
             } catch (RepositoryException e) {
-                log.warn("RepositoryException in finally block: {}",
-                    e.getMessage(), e);
+                log.warn("RepositoryException in finally block: {}", e.getMessage(), e);
             }
         }
-
     }
 
     /**
@@ -218,9 +230,8 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @throws PreconditionViolatedPersistenceException if a retry doesn't make sense
      *             and some preconditions should be changed.
      */
-    protected abstract void doRun(SlingHttpServletRequest request,
-            PostResponse response,
-            List<Modification> changes) throws RepositoryException, PreconditionViolatedPersistenceException, TemporaryPersistenceException;
+    protected abstract void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
+            throws RepositoryException, PreconditionViolatedPersistenceException, TemporaryPersistenceException;
 
     /**
      * Get the versioning configuration.
@@ -229,7 +240,7 @@ public abstract class AbstractPostOperation implements PostOperation {
      */
     protected VersioningConfiguration getVersioningConfiguration(SlingHttpServletRequest request) {
         VersioningConfiguration versionableConfiguration =
-            (VersioningConfiguration) request.getAttribute(VersioningConfiguration.class.getName());
+                (VersioningConfiguration) request.getAttribute(VersioningConfiguration.class.getName());
         return versionableConfiguration != null ? versionableConfiguration : new VersioningConfiguration();
     }
 
@@ -248,7 +259,8 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @return {@code true} If session handling should be skipped
      */
     protected boolean isSkipSessionHandling(SlingHttpServletRequest request) {
-        return Boolean.parseBoolean((String) request.getAttribute(SlingPostConstants.ATTR_SKIP_SESSION_HANDLING)) == true;
+        return Boolean.parseBoolean((String) request.getAttribute(SlingPostConstants.ATTR_SKIP_SESSION_HANDLING))
+                == true;
     }
 
     /**
@@ -284,7 +296,6 @@ public abstract class AbstractPostOperation implements PostOperation {
         return path;
     }
 
-
     /**
      * Returns the path of the resource of the request as the item path.
      * <p>
@@ -310,8 +321,7 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @return The iterator of resources listed in the parameter or
      *         <code>null</code> if the parameter is not set in the request.
      */
-    protected Iterator<Resource> getApplyToResources(
-            SlingHttpServletRequest request) {
+    protected Iterator<Resource> getApplyToResources(SlingHttpServletRequest request) {
 
         final String[] applyTo = request.getParameterValues(SlingPostConstants.RP_APPLY_TO);
         if (applyTo == null) {
@@ -329,8 +339,7 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @param path the path to externalize
      * @return the url
      */
-    protected final String externalizePath(SlingHttpServletRequest request,
-            String path) {
+    protected final String externalizePath(SlingHttpServletRequest request, String path) {
         StringBuilder ret = new StringBuilder();
         ret.append(SlingRequestPaths.getContextPath(request));
         ret.append(request.getResourceResolver().map(path));
@@ -376,8 +385,7 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @param request The http request
      * @return If a prefix is required.
      */
-    protected final boolean requireItemPathPrefix(
-            SlingHttpServletRequest request) {
+    protected final boolean requireItemPathPrefix(SlingHttpServletRequest request) {
 
         boolean requirePrefix = false;
 
@@ -402,8 +410,8 @@ public abstract class AbstractPostOperation implements PostOperation {
      */
     protected boolean hasItemPathPrefix(String name) {
         return name.startsWith(SlingPostConstants.ITEM_PREFIX_ABSOLUTE)
-            || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT)
-            || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_PARENT);
+                || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT)
+                || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_PARENT);
     }
 
     /**
@@ -417,8 +425,8 @@ public abstract class AbstractPostOperation implements PostOperation {
      * @param changes The list of modifications
      * @throws RepositoryException if an error occurs
      */
-    protected void orderNode(SlingHttpServletRequest request, Item item,
-            List<Modification> changes) throws RepositoryException {
+    protected void orderNode(SlingHttpServletRequest request, Item item, List<Modification> changes)
+            throws RepositoryException {
 
         String command = request.getParameter(SlingPostConstants.RP_ORDER);
         if (command == null || command.length() == 0) {
@@ -484,8 +492,7 @@ public abstract class AbstractPostOperation implements PostOperation {
                     newPos--;
                 }
             } catch (NumberFormatException e) {
-                throw new IllegalArgumentException(
-                    "provided node ordering command is invalid: " + command);
+                throw new IllegalArgumentException("provided node ordering command is invalid: " + command);
             }
         }
 
@@ -499,8 +506,7 @@ public abstract class AbstractPostOperation implements PostOperation {
                 log.debug("Node {} moved '{}'", item.getPath(), command);
             }
         } else {
-            throw new IllegalArgumentException(
-                "provided node ordering command is invalid: " + command);
+            throw new IllegalArgumentException("provided node ordering command is invalid: " + command);
         }
     }
 
@@ -521,8 +527,9 @@ public abstract class AbstractPostOperation implements PostOperation {
         return node.isNodeType("mix:versionable");
     }
 
-    protected void checkoutIfNecessary(Node node, List<Modification> changes,
-            VersioningConfiguration versioningConfiguration) throws RepositoryException {
+    protected void checkoutIfNecessary(
+            Node node, List<Modification> changes, VersioningConfiguration versioningConfiguration)
+            throws RepositoryException {
         if (versioningConfiguration.isAutoCheckout()) {
             Node versionableNode = findVersionableAncestor(node);
             if (versionableNode != null) {
@@ -590,41 +597,41 @@ public abstract class AbstractPostOperation implements PostOperation {
         }
 
         private Resource seek() {
-        	if (resourceIterator != null) {
-        		if (resourceIterator.hasNext()) {
-            		//return the next resource in the iterator
-        			Resource res = resourceIterator.next();
-        			return res;
+            if (resourceIterator != null) {
+                if (resourceIterator.hasNext()) {
+                    // return the next resource in the iterator
+                    Resource res = resourceIterator.next();
+                    return res;
                 }
-    			resourceIterator = null;
-        	}
+                resourceIterator = null;
+            }
             while (pathIndex < paths.length) {
                 String path = paths[pathIndex];
                 pathIndex++;
 
-                //SLING-2415 - support wildcard as the last segment of the applyTo path
+                // SLING-2415 - support wildcard as the last segment of the applyTo path
                 if (path.endsWith("*")) {
-                	if (path.length() == 1) {
-                		resourceIterator = baseResource.listChildren();
-                	} else if (path.endsWith("/*")) {
-                    	path = path.substring(0, path.length() - 2);
-                    	if (path.length() == 0) {
-                    		resourceIterator = baseResource.listChildren();
-                    	} else {
-                        	Resource res = resolver.getResource(baseResource, path);
+                    if (path.length() == 1) {
+                        resourceIterator = baseResource.listChildren();
+                    } else if (path.endsWith("/*")) {
+                        path = path.substring(0, path.length() - 2);
+                        if (path.length() == 0) {
+                            resourceIterator = baseResource.listChildren();
+                        } else {
+                            Resource res = resolver.getResource(baseResource, path);
                             if (res != null) {
-                            	resourceIterator = res.listChildren();
+                                resourceIterator = res.listChildren();
                             }
-                    	}
+                        }
                     }
-                	if (resourceIterator != null) {
-                		//return the first resource in the iterator
-                		if (resourceIterator.hasNext()) {
-                			Resource res = resourceIterator.next();
-                			return res;
-                		}
+                    if (resourceIterator != null) {
+                        // return the first resource in the iterator
+                        if (resourceIterator.hasNext()) {
+                            Resource res = resourceIterator.next();
+                            return res;
+                        }
                         resourceIterator = null;
-                	}
+                    }
                 } else {
                     Resource res = resolver.getResource(baseResource, path);
                     if (res != null) {
@@ -637,4 +644,4 @@ public abstract class AbstractPostOperation implements PostOperation {
             return null;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java b/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
index aff9f93..1ade002 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java
@@ -1,27 +1,29 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
+import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
 
-import javax.servlet.http.HttpServletResponse;
-
 /**
  * The <code>AbstractPostResponse</code> class provides a basic implementation
  * of the {@link PostResponse} interface maintaining properties to be
@@ -115,11 +117,8 @@ public abstract class AbstractPostResponse implements PostResponse {
      * {@inheritDoc}
      */
     public boolean isCreateRequest() {
-        final Boolean isCreateRequest = getProperty(PN_IS_CREATED,
-            Boolean.class);
-        return (isCreateRequest != null)
-                ? isCreateRequest.booleanValue()
-                : false;
+        final Boolean isCreateRequest = getProperty(PN_IS_CREATED, Boolean.class);
+        return (isCreateRequest != null) ? isCreateRequest.booleanValue() : false;
     }
 
     /**
@@ -277,7 +276,6 @@ public abstract class AbstractPostResponse implements PostResponse {
         onChange("copied", srcPath, dstPath);
     }
 
-
     /**
      * prepares the response properties
      */
@@ -316,7 +314,6 @@ public abstract class AbstractPostResponse implements PostResponse {
                 }
             }
         }
-
     }
 
     /**
@@ -363,7 +360,7 @@ public abstract class AbstractPostResponse implements PostResponse {
      * determines if the referer has a proper referer including protocol
      * @return true if HTTP or HTTPS protocol information is available in the referer
      */
-    protected boolean isSafeReferer(){
+    protected boolean isSafeReferer() {
         String referer = getReferer();
         if (referer.startsWith("http://") || referer.startsWith("https://")) {
             return true;
@@ -383,10 +380,8 @@ public abstract class AbstractPostResponse implements PostResponse {
      * @param setStatus whether to set the status code on the response
      * @throws IOException if an i/o exception occurs
      */
-    public final void send(HttpServletResponse response, boolean setStatus)
-            throws IOException {
+    public final void send(HttpServletResponse response, boolean setStatus) throws IOException {
         prepare(response, setStatus);
         doSend(response);
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractPostResponseWrapper.java b/src/main/java/org/apache/sling/servlets/post/AbstractPostResponseWrapper.java
index 6d26958..fbc5d2c 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractPostResponseWrapper.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractPostResponseWrapper.java
@@ -1,25 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 /**
  * Provides a simple implementation of PostResponse that can be subclassed by developers wishing to provide specialized behavior
  * to an existing PostResponse instance. The default implementation of all methods is to call through to the wrapped
@@ -155,5 +157,4 @@ public abstract class AbstractPostResponseWrapper implements PostResponse {
     public void send(HttpServletResponse response, boolean setStatus) throws IOException {
         getWrapped().send(response, setStatus);
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java b/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
index 69c1320..29a970e 100644
--- a/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
@@ -1,25 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
-import java.util.List;
-
 import javax.jcr.RepositoryException;
 
+import java.util.List;
+
 import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.api.servlets.HtmlResponse;
 import org.apache.sling.servlets.post.exceptions.PreconditionViolatedPersistenceException;
@@ -38,8 +40,7 @@ import org.apache.sling.servlets.post.impl.helper.HtmlResponseProxy;
  * @deprecated as of 2.0.8 (Bundle version 2.2.0) and replaced by
  *             {@link AbstractPostOperation}.
  */
-public abstract class AbstractSlingPostOperation extends AbstractPostOperation
-        implements SlingPostOperation {
+public abstract class AbstractSlingPostOperation extends AbstractPostOperation implements SlingPostOperation {
 
     /**
      *
@@ -48,8 +49,7 @@ public abstract class AbstractSlingPostOperation extends AbstractPostOperation
      * @param changes all changes
      * @throws RepositoryException in case of problems
      */
-    protected abstract void doRun(SlingHttpServletRequest request,
-            HtmlResponse response, List<Modification> changes)
+    protected abstract void doRun(SlingHttpServletRequest request, HtmlResponse response, List<Modification> changes)
             throws RepositoryException;
 
     /**
@@ -59,8 +59,7 @@ public abstract class AbstractSlingPostOperation extends AbstractPostOperation
      * {@link #run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])}
      * meethod with a proxy for the Sling API <code>HtmlResponse</code>.
      */
-    protected void doRun(SlingHttpServletRequest request,
-            PostResponse response, List<Modification> changes)
+    protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
             throws RepositoryException {
         final HtmlResponse htmlResponseProxy = (response instanceof HtmlPostResponseProxy)
                 ? ((HtmlPostResponseProxy) response).getHtmlResponse()
@@ -75,11 +74,9 @@ public abstract class AbstractSlingPostOperation extends AbstractPostOperation
      * {@link PostOperation#run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])}
      * with a proxy around the Sling API <code>HtmlResponse</code> provided.
      */
-    public void run(SlingHttpServletRequest request, HtmlResponse response,
-            SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
-        final PostResponse postResponseProxy = new HtmlPostResponseProxy(
-            response);
+    public void run(SlingHttpServletRequest request, HtmlResponse response, SlingPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
+        final PostResponse postResponseProxy = new HtmlPostResponseProxy(response);
         run(request, postResponseProxy, processors);
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/HtmlResponse.java b/src/main/java/org/apache/sling/servlets/post/HtmlResponse.java
index ee3ca89..31652d4 100644
--- a/src/main/java/org/apache/sling/servlets/post/HtmlResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/HtmlResponse.java
@@ -1,21 +1,25 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
+import javax.servlet.http.HttpServletResponse;
+
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
@@ -23,8 +27,6 @@ import java.io.InputStreamReader;
 import java.io.Reader;
 import java.io.Writer;
 
-import javax.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.request.ResponseUtil;
 
 /**
@@ -106,8 +108,7 @@ public class HtmlResponse extends AbstractPostResponse {
      * @throws IOException if an i/o exception occurs
      */
     @Override
-    protected void doSend(HttpServletResponse response)
-            throws IOException {
+    protected void doSend(HttpServletResponse response) throws IOException {
 
         response.setContentType("text/html");
         response.setCharacterEncoding("UTF-8");
@@ -124,7 +125,7 @@ public class HtmlResponse extends AbstractPostResponse {
         Writer out = response.getWriter();
 
         String templateName;
-        if(isSafeReferer()) {
+        if (isSafeReferer()) {
             templateName = TEMPLATE_NAME;
         } else {
             templateName = NO_GO_BACK_TEMPLATE_NAME;
@@ -138,7 +139,7 @@ public class HtmlResponse extends AbstractPostResponse {
         while ((read = in.read()) >= 0) {
             char c = (char) read;
             switch (state) {
-                // initial
+                    // initial
                 case 0:
                     if (c == '$') {
                         state = 1;
@@ -146,7 +147,7 @@ public class HtmlResponse extends AbstractPostResponse {
                         out.write(c);
                     }
                     break;
-                // $ read
+                    // $ read
                 case 1:
                     if (c == '{') {
                         state = 2;
@@ -156,7 +157,7 @@ public class HtmlResponse extends AbstractPostResponse {
                         out.write(c);
                     }
                     break;
-                // { read
+                    // { read
                 case 2:
                     if (c == '}') {
                         state = 0;
@@ -173,5 +174,4 @@ public class HtmlResponse extends AbstractPostResponse {
         in.close();
         out.flush();
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/JSONResponse.java b/src/main/java/org/apache/sling/servlets/post/JSONResponse.java
index 127eaaa..caaac02 100644
--- a/src/main/java/org/apache/sling/servlets/post/JSONResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/JSONResponse.java
@@ -18,15 +18,8 @@
  */
 package org.apache.sling.servlets.post;
 
-
-import org.apache.sling.jcr.contentparser.impl.JsonTicksConverter;
-
-import jakarta.json.Json;
-import jakarta.json.JsonArrayBuilder;
-import jakarta.json.JsonObject;
-import jakarta.json.JsonObjectBuilder;
-import jakarta.json.JsonStructure;
 import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 import java.io.StringReader;
 import java.math.BigDecimal;
@@ -37,6 +30,13 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import jakarta.json.Json;
+import jakarta.json.JsonArrayBuilder;
+import jakarta.json.JsonObject;
+import jakarta.json.JsonObjectBuilder;
+import jakarta.json.JsonStructure;
+import org.apache.sling.jcr.contentparser.impl.JsonTicksConverter;
+
 /**
  * The <code>JSONResponse</code> is an {@link AbstractPostResponse} preparing
  * the response in JSON.
@@ -67,13 +67,12 @@ public class JSONResponse extends AbstractPostResponse {
     private Throwable error;
 
     public void onChange(String type, String... arguments) {
-        Map<String,Object> change = new HashMap<>();
+        Map<String, Object> change = new HashMap<>();
         change.put(PROP_TYPE, type);
 
         if (arguments.length > 1) {
             change.put(PROP_ARGUMENT, Arrays.asList(arguments));
-        }
-        else if (arguments.length == 1) {
+        } else if (arguments.length == 1) {
             change.put(PROP_ARGUMENT, arguments[0]);
         }
         changes.add(change);
@@ -104,11 +103,11 @@ public class JSONResponse extends AbstractPostResponse {
     public void setProperty(String name, Object value) {
         if (value instanceof String || value instanceof Boolean || value instanceof Number || value == null) {
             json.put(name, value);
-        }
-        else {
+        } else {
             try {
                 String valueString = JsonTicksConverter.tickToDoubleQuote(value.toString());
-                jsonCached.put(name, Json.createReader(new StringReader(valueString)).read());
+                jsonCached.put(
+                        name, Json.createReader(new StringReader(valueString)).read());
                 json.put(name, value);
             } catch (Exception ex) {
                 throw new JSONResponseException(ex);
@@ -118,11 +117,12 @@ public class JSONResponse extends AbstractPostResponse {
 
     @Override
     public Object getProperty(String name) {
-        return PROP_CHANGES.equals(name) ? getJson().getJsonArray(PROP_CHANGES) :
-            "error".equals(name) && this.error != null ? getJson().get("error") : json.get(name);
+        return PROP_CHANGES.equals(name)
+                ? getJson().getJsonArray(PROP_CHANGES)
+                : "error".equals(name) && this.error != null ? getJson().get("error") : json.get(name);
     }
 
-    @SuppressWarnings({ "ThrowableResultOfMethodCallIgnored" })
+    @SuppressWarnings({"ThrowableResultOfMethodCallIgnored"})
     @Override
     protected void doSend(HttpServletResponse response) throws IOException {
 
@@ -138,46 +138,36 @@ public class JSONResponse extends AbstractPostResponse {
             Object value = entry.getValue();
             if (value instanceof String) {
                 jsonBuilder.add(entry.getKey(), (String) entry.getValue());
-            }
-            else if (value instanceof Boolean) {
+            } else if (value instanceof Boolean) {
                 jsonBuilder.add(entry.getKey(), (Boolean) value);
-            }
-            else if (value instanceof BigInteger) {
+            } else if (value instanceof BigInteger) {
                 jsonBuilder.add(entry.getKey(), (BigInteger) value);
-            }
-            else if (value instanceof BigDecimal) {
+            } else if (value instanceof BigDecimal) {
                 jsonBuilder.add(entry.getKey(), (BigDecimal) value);
-            }
-            else if (value instanceof Byte) {
+            } else if (value instanceof Byte) {
                 jsonBuilder.add(entry.getKey(), (Byte) value);
-            }
-            else if (value instanceof Short) {
+            } else if (value instanceof Short) {
                 jsonBuilder.add(entry.getKey(), (Short) value);
-            }
-            else if (value instanceof Integer) {
+            } else if (value instanceof Integer) {
                 jsonBuilder.add(entry.getKey(), (Integer) value);
-            }
-            else if (value instanceof Long) {
+            } else if (value instanceof Long) {
                 jsonBuilder.add(entry.getKey(), (Long) value);
-            }
-            else if (value instanceof Double) {
+            } else if (value instanceof Double) {
                 jsonBuilder.add(entry.getKey(), (Double) value);
-            }
-            else if (value instanceof Float) {
+            } else if (value instanceof Float) {
                 jsonBuilder.add(entry.getKey(), (Float) value);
-            }
-            else if (value == null) {
+            } else if (value == null) {
                 jsonBuilder.addNull(entry.getKey());
-            }
-            else {
+            } else {
                 jsonBuilder.add(entry.getKey(), jsonCached.get(entry.getKey()));
             }
         }
         if (this.error != null) {
-            jsonBuilder
-                .add("error", Json.createObjectBuilder()
-                    .add("class", error.getClass().getName())
-                    .add("message", error.getMessage()));
+            jsonBuilder.add(
+                    "error",
+                    Json.createObjectBuilder()
+                            .add("class", error.getClass().getName())
+                            .add("message", error.getMessage()));
         }
         JsonArrayBuilder changesBuilder = Json.createArrayBuilder();
         if (this.error == null) {
@@ -192,9 +182,9 @@ public class JSONResponse extends AbstractPostResponse {
                         JsonArrayBuilder argumentsBuilder = Json.createArrayBuilder();
 
                         for (String argument : ((List<String>) arguments)) {
-                        	if(argument != null) {
+                            if (argument != null) {
                                 argumentsBuilder.add(argument);
-                        	}
+                            }
                         }
 
                         entryBuilder.add(PROP_ARGUMENT, argumentsBuilder);
@@ -211,10 +201,11 @@ public class JSONResponse extends AbstractPostResponse {
 
     public class JSONResponseException extends RuntimeException {
         public JSONResponseException(String message, Throwable exception) {
-           super(message, exception);
+            super(message, exception);
         }
+
         public JSONResponseException(Throwable e) {
-           super("Error building JSON response", e);
+            super("Error building JSON response", e);
         }
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaHtmlResponse.java b/src/main/java/org/apache/sling/servlets/post/JakartaHtmlResponse.java
index 5563b57..b08a872 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaHtmlResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaHtmlResponse.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -24,7 +26,6 @@ import java.io.Reader;
 import java.io.Writer;
 
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.request.ResponseUtil;
 
 /**
@@ -105,8 +106,7 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
      * @throws IOException if an i/o exception occurs
      */
     @Override
-    protected void doSend(HttpServletResponse response)
-            throws IOException {
+    protected void doSend(HttpServletResponse response) throws IOException {
 
         response.setContentType("text/html");
         response.setCharacterEncoding("UTF-8");
@@ -123,7 +123,7 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
         Writer out = response.getWriter();
 
         String templateName;
-        if(isSafeReferer()) {
+        if (isSafeReferer()) {
             templateName = TEMPLATE_NAME;
         } else {
             templateName = NO_GO_BACK_TEMPLATE_NAME;
@@ -137,7 +137,7 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
         while ((read = in.read()) >= 0) {
             char c = (char) read;
             switch (state) {
-                // initial
+                    // initial
                 case 0:
                     if (c == '$') {
                         state = 1;
@@ -145,7 +145,7 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
                         out.write(c);
                     }
                     break;
-                // $ read
+                    // $ read
                 case 1:
                     if (c == '{') {
                         state = 2;
@@ -155,7 +155,7 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
                         out.write(c);
                     }
                     break;
-                // { read
+                    // { read
                 case 2:
                     if (c == '}') {
                         state = 0;
@@ -172,5 +172,4 @@ public class JakartaHtmlResponse extends AbstractJakartaPostResponse {
         in.close();
         out.flush();
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaJSONResponse.java b/src/main/java/org/apache/sling/servlets/post/JakartaJSONResponse.java
index 36beea5..0946ad3 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaJSONResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaJSONResponse.java
@@ -18,15 +18,6 @@
  */
 package org.apache.sling.servlets.post;
 
-
-import org.apache.sling.jcr.contentparser.impl.JsonTicksConverter;
-
-import jakarta.json.Json;
-import jakarta.json.JsonArrayBuilder;
-import jakarta.json.JsonObject;
-import jakarta.json.JsonObjectBuilder;
-import jakarta.json.JsonStructure;
-import jakarta.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.io.StringReader;
 import java.math.BigDecimal;
@@ -37,6 +28,14 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import jakarta.json.Json;
+import jakarta.json.JsonArrayBuilder;
+import jakarta.json.JsonObject;
+import jakarta.json.JsonObjectBuilder;
+import jakarta.json.JsonStructure;
+import jakarta.servlet.http.HttpServletResponse;
+import org.apache.sling.jcr.contentparser.impl.JsonTicksConverter;
+
 /**
  * The <code>JSONResponse</code> is an {@link AbstractJakartaPostResponse} preparing
  * the response in JSON.
@@ -66,13 +65,12 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
     private Throwable error;
 
     public void onChange(String type, String... arguments) {
-        Map<String,Object> change = new HashMap<>();
+        Map<String, Object> change = new HashMap<>();
         change.put(PROP_TYPE, type);
 
         if (arguments.length > 1) {
             change.put(PROP_ARGUMENT, Arrays.asList(arguments));
-        }
-        else if (arguments.length == 1) {
+        } else if (arguments.length == 1) {
             change.put(PROP_ARGUMENT, arguments[0]);
         }
         changes.add(change);
@@ -103,11 +101,11 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
     public void setProperty(String name, Object value) {
         if (value instanceof String || value instanceof Boolean || value instanceof Number || value == null) {
             json.put(name, value);
-        }
-        else {
+        } else {
             try {
                 String valueString = JsonTicksConverter.tickToDoubleQuote(value.toString());
-                jsonCached.put(name, Json.createReader(new StringReader(valueString)).read());
+                jsonCached.put(
+                        name, Json.createReader(new StringReader(valueString)).read());
                 json.put(name, value);
             } catch (Exception ex) {
                 throw new JSONResponseException(ex);
@@ -117,11 +115,12 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
 
     @Override
     public Object getProperty(String name) {
-        return PROP_CHANGES.equals(name) ? getJson().getJsonArray(PROP_CHANGES) :
-            "error".equals(name) && this.error != null ? getJson().get("error") : json.get(name);
+        return PROP_CHANGES.equals(name)
+                ? getJson().getJsonArray(PROP_CHANGES)
+                : "error".equals(name) && this.error != null ? getJson().get("error") : json.get(name);
     }
 
-    @SuppressWarnings({ "ThrowableResultOfMethodCallIgnored" })
+    @SuppressWarnings({"ThrowableResultOfMethodCallIgnored"})
     @Override
     protected void doSend(HttpServletResponse response) throws IOException {
 
@@ -137,46 +136,36 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
             Object value = entry.getValue();
             if (value instanceof String) {
                 jsonBuilder.add(entry.getKey(), (String) entry.getValue());
-            }
-            else if (value instanceof Boolean) {
+            } else if (value instanceof Boolean) {
                 jsonBuilder.add(entry.getKey(), (Boolean) value);
-            }
-            else if (value instanceof BigInteger) {
+            } else if (value instanceof BigInteger) {
                 jsonBuilder.add(entry.getKey(), (BigInteger) value);
-            }
-            else if (value instanceof BigDecimal) {
+            } else if (value instanceof BigDecimal) {
                 jsonBuilder.add(entry.getKey(), (BigDecimal) value);
-            }
-            else if (value instanceof Byte) {
+            } else if (value instanceof Byte) {
                 jsonBuilder.add(entry.getKey(), (Byte) value);
-            }
-            else if (value instanceof Short) {
+            } else if (value instanceof Short) {
                 jsonBuilder.add(entry.getKey(), (Short) value);
-            }
-            else if (value instanceof Integer) {
+            } else if (value instanceof Integer) {
                 jsonBuilder.add(entry.getKey(), (Integer) value);
-            }
-            else if (value instanceof Long) {
+            } else if (value instanceof Long) {
                 jsonBuilder.add(entry.getKey(), (Long) value);
-            }
-            else if (value instanceof Double) {
+            } else if (value instanceof Double) {
                 jsonBuilder.add(entry.getKey(), (Double) value);
-            }
-            else if (value instanceof Float) {
+            } else if (value instanceof Float) {
                 jsonBuilder.add(entry.getKey(), (Float) value);
-            }
-            else if (value == null) {
+            } else if (value == null) {
                 jsonBuilder.addNull(entry.getKey());
-            }
-            else {
+            } else {
                 jsonBuilder.add(entry.getKey(), jsonCached.get(entry.getKey()));
             }
         }
         if (this.error != null) {
-            jsonBuilder
-                .add("error", Json.createObjectBuilder()
-                    .add("class", error.getClass().getName())
-                    .add("message", error.getMessage()));
+            jsonBuilder.add(
+                    "error",
+                    Json.createObjectBuilder()
+                            .add("class", error.getClass().getName())
+                            .add("message", error.getMessage()));
         }
         JsonArrayBuilder changesBuilder = Json.createArrayBuilder();
         if (this.error == null) {
@@ -191,9 +180,9 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
                         JsonArrayBuilder argumentsBuilder = Json.createArrayBuilder();
 
                         for (String argument : ((List<String>) arguments)) {
-                        	if(argument != null) {
+                            if (argument != null) {
                                 argumentsBuilder.add(argument);
-                        	}
+                            }
                         }
 
                         entryBuilder.add(PROP_ARGUMENT, argumentsBuilder);
@@ -210,10 +199,11 @@ public class JakartaJSONResponse extends AbstractJakartaPostResponse {
 
     public class JSONResponseException extends RuntimeException {
         public JSONResponseException(String message, Throwable exception) {
-           super(message, exception);
+            super(message, exception);
         }
+
         public JSONResponseException(Throwable e) {
-           super("Error building JSON response", e);
+            super("Error building JSON response", e);
         }
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaNodeNameGenerator.java b/src/main/java/org/apache/sling/servlets/post/JakartaNodeNameGenerator.java
index b9aa5f1..c6a8665 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaNodeNameGenerator.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaNodeNameGenerator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -36,6 +38,9 @@ public interface JakartaNodeNameGenerator {
      *
      * @return the node name to be created or null if other JakartaNodeNameGenerator should be consulted
      */
-    public String getNodeName(SlingJakartaHttpServletRequest request, String parentPath, boolean requirePrefix,
+    public String getNodeName(
+            SlingJakartaHttpServletRequest request,
+            String parentPath,
+            boolean requirePrefix,
             JakartaNodeNameGenerator defaultNodeNameGenerator);
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaPostOperation.java b/src/main/java/org/apache/sling/servlets/post/JakartaPostOperation.java
index 1c976dd..6cab8e4 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaPostOperation.java
@@ -89,6 +89,9 @@ public interface JakartaPostOperation {
      * @throws TemporaryPersistenceException when a commit failed, but a retry could make
      *             the operation work successfully.
      */
-    void run(SlingJakartaHttpServletRequest request, JakartaPostResponse response,
-            SlingJakartaPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException;
+    void run(
+            SlingJakartaHttpServletRequest request,
+            JakartaPostResponse response,
+            SlingJakartaPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaPostResponse.java b/src/main/java/org/apache/sling/servlets/post/JakartaPostResponse.java
index 7b64f6c..3ced0cb 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaPostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaPostResponse.java
@@ -224,7 +224,5 @@ public interface JakartaPostResponse {
      * @param setStatus whether to set the status code on the response
      * @throws IOException if an i/o exception occurs
      */
-    void send(HttpServletResponse response, boolean setStatus)
-            throws IOException;
-
-}
\ No newline at end of file
+    void send(HttpServletResponse response, boolean setStatus) throws IOException;
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/JakartaPostResponseCreator.java b/src/main/java/org/apache/sling/servlets/post/JakartaPostResponseCreator.java
index 2dbbd7a..16b43df 100644
--- a/src/main/java/org/apache/sling/servlets/post/JakartaPostResponseCreator.java
+++ b/src/main/java/org/apache/sling/servlets/post/JakartaPostResponseCreator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
diff --git a/src/main/java/org/apache/sling/servlets/post/Modification.java b/src/main/java/org/apache/sling/servlets/post/Modification.java
index 5d2891b..57b6bf6 100644
--- a/src/main/java/org/apache/sling/servlets/post/Modification.java
+++ b/src/main/java/org/apache/sling/servlets/post/Modification.java
@@ -26,8 +26,7 @@ public class Modification {
 
     private final String destination;
 
-    public Modification(final ModificationType type, final String source,
-            final String destination) {
+    public Modification(final ModificationType type, final String source, final String destination) {
         this.type = type;
         this.source = source;
         this.destination = destination;
@@ -119,8 +118,7 @@ public class Modification {
         return onChange(type, source, null);
     }
 
-    protected static Modification onChange(ModificationType type,
-            final String source, final String dest) {
+    protected static Modification onChange(ModificationType type, final String source, final String dest) {
         return new Modification(type, source, dest);
     }
 
diff --git a/src/main/java/org/apache/sling/servlets/post/ModificationType.java b/src/main/java/org/apache/sling/servlets/post/ModificationType.java
index 1781a8f..eabc3ee 100644
--- a/src/main/java/org/apache/sling/servlets/post/ModificationType.java
+++ b/src/main/java/org/apache/sling/servlets/post/ModificationType.java
@@ -69,7 +69,7 @@ public enum ModificationType {
      * A Node has been checked in. The source path provides the path of the node.
      */
     CHECKIN,
-    
+
     /**
      * A Node has been restored to a given version. The soruce path provides the
      * path of the node and the destination describes the target version.
diff --git a/src/main/java/org/apache/sling/servlets/post/NodeNameGenerator.java b/src/main/java/org/apache/sling/servlets/post/NodeNameGenerator.java
index fb7bcac..3f6e6a7 100644
--- a/src/main/java/org/apache/sling/servlets/post/NodeNameGenerator.java
+++ b/src/main/java/org/apache/sling/servlets/post/NodeNameGenerator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -35,6 +37,9 @@ public interface NodeNameGenerator {
      *
      * @return the node name to be created or null if other NodeNameGenerators should be consulted
      */
-    public String getNodeName(SlingHttpServletRequest request, String parentPath, boolean requirePrefix,
+    public String getNodeName(
+            SlingHttpServletRequest request,
+            String parentPath,
+            boolean requirePrefix,
             NodeNameGenerator defaultNodeNameGenerator);
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/PostOperation.java b/src/main/java/org/apache/sling/servlets/post/PostOperation.java
index cdf737e..a8ca410 100644
--- a/src/main/java/org/apache/sling/servlets/post/PostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/PostOperation.java
@@ -90,6 +90,6 @@ public interface PostOperation {
      * @throws TemporaryPersistenceException when a commit failed, but a retry could make
      *             the operation work successfully.
      */
-    void run(SlingHttpServletRequest request, PostResponse response,
-            SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException;
+    void run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/PostResponse.java b/src/main/java/org/apache/sling/servlets/post/PostResponse.java
index 4a46e02..e3215f8 100644
--- a/src/main/java/org/apache/sling/servlets/post/PostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/PostResponse.java
@@ -18,10 +18,10 @@
  */
 package org.apache.sling.servlets.post;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 /**
  * The <code>PostResponse</code> interface defines the API of a response
  * container which can (and should) be used by {@link PostOperation} services to
@@ -225,7 +225,5 @@ public interface PostResponse {
      * @param setStatus whether to set the status code on the response
      * @throws IOException if an i/o exception occurs
      */
-    void send(HttpServletResponse response, boolean setStatus)
-            throws IOException;
-
-}
\ No newline at end of file
+    void send(HttpServletResponse response, boolean setStatus) throws IOException;
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/PostResponseCreator.java b/src/main/java/org/apache/sling/servlets/post/PostResponseCreator.java
index f301d8e..4641fbe 100644
--- a/src/main/java/org/apache/sling/servlets/post/PostResponseCreator.java
+++ b/src/main/java/org/apache/sling/servlets/post/PostResponseCreator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
diff --git a/src/main/java/org/apache/sling/servlets/post/PostResponseWithErrorHandling.java b/src/main/java/org/apache/sling/servlets/post/PostResponseWithErrorHandling.java
index 6900ae0..fcdc885 100644
--- a/src/main/java/org/apache/sling/servlets/post/PostResponseWithErrorHandling.java
+++ b/src/main/java/org/apache/sling/servlets/post/PostResponseWithErrorHandling.java
@@ -18,44 +18,44 @@
  */
 package org.apache.sling.servlets.post;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 import org.apache.sling.api.SlingHttpServletRequest;
 
 /**
  * @deprecated
  */
 @Deprecated
-public class PostResponseWithErrorHandling implements PostResponseCreator{
+public class PostResponseWithErrorHandling implements PostResponseCreator {
 
-	@Override
+    @Override
     public PostResponse createPostResponse(SlingHttpServletRequest request) {
-		if (isSendError(request)) {
-			return new HtmlResponse() {
+        if (isSendError(request)) {
+            return new HtmlResponse() {
 
-				@Override
-				protected void doSend(HttpServletResponse response) throws IOException {
-					if (!this.isSuccessful()) {
-						response.sendError(this.getStatusCode(), this.getError().toString());
-						return;
-					}else{
-						super.doSend(response);
-					}
-				}
-			};
-		}else{
-			return null;
-		}
-	}
+                @Override
+                protected void doSend(HttpServletResponse response) throws IOException {
+                    if (!this.isSuccessful()) {
+                        response.sendError(this.getStatusCode(), this.getError().toString());
+                        return;
+                    } else {
+                        super.doSend(response);
+                    }
+                }
+            };
+        } else {
+            return null;
+        }
+    }
 
-	protected boolean isSendError(SlingHttpServletRequest request){
-		boolean sendError=false;
-		String sendErrorParam=request.getParameter(SlingPostConstants.RP_SEND_ERROR);
-		if (sendErrorParam!=null && "true".equalsIgnoreCase(sendErrorParam)){
-			sendError=true;
-		}
-		return sendError;
-	}
+    protected boolean isSendError(SlingHttpServletRequest request) {
+        boolean sendError = false;
+        String sendErrorParam = request.getParameter(SlingPostConstants.RP_SEND_ERROR);
+        if (sendErrorParam != null && "true".equalsIgnoreCase(sendErrorParam)) {
+            sendError = true;
+        }
+        return sendError;
+    }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/SlingJakartaPostProcessor.java b/src/main/java/org/apache/sling/servlets/post/SlingJakartaPostProcessor.java
index bd188db..8c1fdca 100644
--- a/src/main/java/org/apache/sling/servlets/post/SlingJakartaPostProcessor.java
+++ b/src/main/java/org/apache/sling/servlets/post/SlingJakartaPostProcessor.java
@@ -47,6 +47,5 @@ public interface SlingJakartaPostProcessor {
      * @param changes The list of changes for this request.
      * @throws Exception If an error occurs.
      */
-    void process(SlingJakartaHttpServletRequest request, List<Modification> changes)
-    throws Exception;
+    void process(SlingJakartaHttpServletRequest request, List<Modification> changes) throws Exception;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/SlingPostConstants.java b/src/main/java/org/apache/sling/servlets/post/SlingPostConstants.java
index e6a9f92..4c47c43 100644
--- a/src/main/java/org/apache/sling/servlets/post/SlingPostConstants.java
+++ b/src/main/java/org/apache/sling/servlets/post/SlingPostConstants.java
@@ -321,7 +321,7 @@ public interface SlingPostConstants {
      */
     public static final String RP_STATUS = RP_PREFIX + "status";
 
-	/**
+    /**
      * Optional request parameter: defines if to enable the error handling
      * also for POST request.
      * The parameter value is checked to see if it matches the case-insensitive
@@ -381,8 +381,7 @@ public interface SlingPostConstants {
      * Optional request parameter: if provided, added at the end of the computed
      * (or supplied) redirect URL
      */
-    public static final String RP_DISPLAY_EXTENSION = RP_PREFIX
-        + "displayExtension";
+    public static final String RP_DISPLAY_EXTENSION = RP_PREFIX + "displayExtension";
 
     /**
      * SLING-130, suffix that maps form field names to different JCR property
@@ -546,7 +545,7 @@ public interface SlingPostConstants {
      * to chunks.
      * @since 2.3.4
      */
-    public static final String RP_APPLY_TO_CHUNKS =  RP_PREFIX + "applyToChunks";
+    public static final String RP_APPLY_TO_CHUNKS = RP_PREFIX + "applyToChunks";
 
     /**
      * Constant for the sling:chunks mixin. Used to identify that node
@@ -588,5 +587,4 @@ public interface SlingPostConstants {
      * @since 2.3.4
      */
     public static final String CHUNK_NODE_NAME = "chunk";
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/SlingPostOperation.java b/src/main/java/org/apache/sling/servlets/post/SlingPostOperation.java
index cf681dd..53329bc 100644
--- a/src/main/java/org/apache/sling/servlets/post/SlingPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/SlingPostOperation.java
@@ -86,6 +86,6 @@ public interface SlingPostOperation {
      * @throws org.apache.sling.api.SlingException May be thrown if an error
      *             occurrs running the operation.
      */
-    void run(SlingHttpServletRequest request, HtmlResponse response,
-            SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException;
+    void run(SlingHttpServletRequest request, HtmlResponse response, SlingPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/SlingPostProcessor.java b/src/main/java/org/apache/sling/servlets/post/SlingPostProcessor.java
index 368e5e6..2a7c16a 100644
--- a/src/main/java/org/apache/sling/servlets/post/SlingPostProcessor.java
+++ b/src/main/java/org/apache/sling/servlets/post/SlingPostProcessor.java
@@ -46,6 +46,5 @@ public interface SlingPostProcessor {
      * @param changes The list of changes for this request.
      * @throws Exception If an error occurs.
      */
-    void process(SlingHttpServletRequest request, List<Modification> changes)
-    throws Exception;
+    void process(SlingHttpServletRequest request, List<Modification> changes) throws Exception;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java b/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java
index fd64e3b..ec1a3b5 100644
--- a/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java
+++ b/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java
@@ -1,22 +1,23 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
-
 /**
  * Data structure to hold the various options associated with how versionable
  * nodes are handled in the post servlet.
@@ -61,5 +62,4 @@ public class VersioningConfiguration implements Cloneable {
     public void setCheckinOnNewVersionableNode(boolean checkinOnNewVersionableNode) {
         this.checkinOnNewVersionableNode = checkinOnNewVersionableNode;
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/exceptions/PreconditionViolatedPersistenceException.java b/src/main/java/org/apache/sling/servlets/post/exceptions/PreconditionViolatedPersistenceException.java
index 3b6253b..f6fb538 100644
--- a/src/main/java/org/apache/sling/servlets/post/exceptions/PreconditionViolatedPersistenceException.java
+++ b/src/main/java/org/apache/sling/servlets/post/exceptions/PreconditionViolatedPersistenceException.java
@@ -20,33 +20,25 @@ package org.apache.sling.servlets.post.exceptions;
 
 import org.apache.sling.api.resource.PersistenceException;
 
-
 /**
  *  Indicates that the input does not meet necessary precondition.
  *  In that case the client should redo the request with a changed input.
  *
  */
-
 public class PreconditionViolatedPersistenceException extends PersistenceException {
 
+    private static final long serialVersionUID = 1L;
 
-  private static final long serialVersionUID = 1L;
-  
-  public PreconditionViolatedPersistenceException(String message, Exception e) {
-    super(message, e);
-  }
-  
-  public PreconditionViolatedPersistenceException(final String msg,
-          final Throwable cause,
-          final String resourcePath,
-          final String propertyName) {
-            super(msg,cause,resourcePath,propertyName);
-            
-            }
+    public PreconditionViolatedPersistenceException(String message, Exception e) {
+        super(message, e);
+    }
 
-public PreconditionViolatedPersistenceException(String msg) {
-    super(msg);
-}
-  
+    public PreconditionViolatedPersistenceException(
+            final String msg, final Throwable cause, final String resourcePath, final String propertyName) {
+        super(msg, cause, resourcePath, propertyName);
+    }
 
+    public PreconditionViolatedPersistenceException(String msg) {
+        super(msg);
+    }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/exceptions/TemporaryPersistenceException.java b/src/main/java/org/apache/sling/servlets/post/exceptions/TemporaryPersistenceException.java
index a8bc2c1..7d1605c 100644
--- a/src/main/java/org/apache/sling/servlets/post/exceptions/TemporaryPersistenceException.java
+++ b/src/main/java/org/apache/sling/servlets/post/exceptions/TemporaryPersistenceException.java
@@ -20,7 +20,6 @@ package org.apache.sling.servlets.post.exceptions;
 
 import org.apache.sling.api.resource.PersistenceException;
 
-
 /**
  * This exceptions indicates errors, which might be temporary and for which a retry
  * with the same parameters could work.
@@ -28,20 +27,14 @@ import org.apache.sling.api.resource.PersistenceException;
  */
 public class TemporaryPersistenceException extends PersistenceException {
 
-
     private static final long serialVersionUID = 8922639484264855481L;
 
     public TemporaryPersistenceException(String message, Exception e) {
         super(message, e);
     }
-  
-    public TemporaryPersistenceException(final String msg,
-          final Throwable cause,
-          final String resourcePath,
-          final String propertyName) {
-            super(msg,cause,resourcePath,propertyName);
-            
-            }
-
 
+    public TemporaryPersistenceException(
+            final String msg, final Throwable cause, final String resourcePath, final String propertyName) {
+        super(msg, cause, resourcePath, propertyName);
+    }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/exceptions/package-info.java b/src/main/java/org/apache/sling/servlets/post/exceptions/package-info.java
index 2ef147f..bbec8dc 100644
--- a/src/main/java/org/apache/sling/servlets/post/exceptions/package-info.java
+++ b/src/main/java/org/apache/sling/servlets/post/exceptions/package-info.java
@@ -21,4 +21,3 @@
 package org.apache.sling.servlets.post.exceptions;
 
 import org.osgi.annotation.versioning.Version;
-
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/ErrorHandlingPostResponseWrapper.java b/src/main/java/org/apache/sling/servlets/post/impl/ErrorHandlingPostResponseWrapper.java
index cecf0cc..1a05d5d 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/ErrorHandlingPostResponseWrapper.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/ErrorHandlingPostResponseWrapper.java
@@ -1,25 +1,26 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl;
 
 import java.io.IOException;
 
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.servlets.post.AbstractJakartaPostResponseWrapper;
 import org.apache.sling.servlets.post.JakartaPostResponse;
 
@@ -74,5 +75,4 @@ public class ErrorHandlingPostResponseWrapper extends AbstractJakartaPostRespons
             response.setStatus(statusCode);
         }
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/PostOperationProxyProvider.java b/src/main/java/org/apache/sling/servlets/post/impl/PostOperationProxyProvider.java
index a394dc8..df02e05 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/PostOperationProxyProvider.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/PostOperationProxyProvider.java
@@ -58,8 +58,8 @@ public class PostOperationProxyProvider implements ServiceListener {
     /**
      * The service listener filter to listen for SlingPostOperation services
      */
-    private static final String REFERENCE_FILTER = "(" + Constants.OBJECTCLASS
-        + "=" + SlingPostOperation.SERVICE_NAME + ")";
+    private static final String REFERENCE_FILTER =
+            "(" + Constants.OBJECTCLASS + "=" + SlingPostOperation.SERVICE_NAME + ")";
 
     // maps references to the SlingPostOperation services to the registrations
     // of the PostOperation proxies for unregistration purposes
@@ -85,8 +85,8 @@ public class PostOperationProxyProvider implements ServiceListener {
 
         try {
             bundleContext.addServiceListener(this, REFERENCE_FILTER);
-            final ServiceReference[] serviceReferences = bundleContext.getServiceReferences(
-                SlingPostOperation.SERVICE_NAME, null);
+            final ServiceReference[] serviceReferences =
+                    bundleContext.getServiceReferences(SlingPostOperation.SERVICE_NAME, null);
             if (serviceReferences != null) {
                 for (ServiceReference serviceReference : serviceReferences) {
                     register(serviceReference);
@@ -114,8 +114,7 @@ public class PostOperationProxyProvider implements ServiceListener {
 
         final ServiceReference[] serviceReferences;
         synchronized (this.proxies) {
-            serviceReferences = this.proxies.keySet().toArray(
-                new ServiceReference[this.proxies.size()]);
+            serviceReferences = this.proxies.keySet().toArray(new ServiceReference[this.proxies.size()]);
         }
 
         for (ServiceReference serviceReference : serviceReferences) {
@@ -165,8 +164,7 @@ public class PostOperationProxyProvider implements ServiceListener {
 
         final BundleContext bundleContext = serviceReference.getBundle().getBundleContext();
         final Dictionary<String, Object> props = copyServiceProperties(serviceReference);
-        final ServiceRegistration reg = bundleContext.registerService(
-            PostOperation.SERVICE_NAME, proxy, props);
+        final ServiceRegistration reg = bundleContext.registerService(PostOperation.SERVICE_NAME, proxy, props);
 
         log.debug("Registering {}", proxy);
         synchronized (this.proxies) {
@@ -215,16 +213,15 @@ public class PostOperationProxyProvider implements ServiceListener {
      * Creates a Dictionary for use as the service registration properties of
      * the PostOperation proxy.
      */
-    private Dictionary<String, Object> copyServiceProperties(
-            final ServiceReference serviceReference) {
+    private Dictionary<String, Object> copyServiceProperties(final ServiceReference serviceReference) {
         final Dictionary<String, Object> props = new Hashtable<>();
         for (String key : serviceReference.getPropertyKeys()) {
             props.put(key, serviceReference.getProperty(key));
         }
-        props.put(PostOperation.PROP_OPERATION_NAME,
-            serviceReference.getProperty(SlingPostOperation.PROP_OPERATION_NAME));
-        props.put(Constants.SERVICE_DESCRIPTION, "Proxy for "
-            + serviceReference);
+        props.put(
+                PostOperation.PROP_OPERATION_NAME,
+                serviceReference.getProperty(SlingPostOperation.PROP_OPERATION_NAME));
+        props.put(Constants.SERVICE_DESCRIPTION, "Proxy for " + serviceReference);
         return props;
     }
 
@@ -247,8 +244,8 @@ public class PostOperationProxyProvider implements ServiceListener {
         }
 
         @Override
-        public void run(SlingHttpServletRequest request, PostResponse response,
-                SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
+        public void run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors)
+                throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
             HtmlResponse apiResponse = new HtmlResponseProxy(response);
             delegatee.run(request, apiResponse, processors);
         }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java b/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
index 66cf650..133deb0 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl;
 
@@ -31,11 +33,10 @@ import java.util.regex.Pattern;
 import jakarta.servlet.Servlet;
 import jakarta.servlet.ServletException;
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.SlingJakartaHttpServletResponse;
-import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.request.header.JakartaMediaRangeList;
+import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.ResourceNotFoundException;
 import org.apache.sling.api.resource.ResourceUtil;
 import org.apache.sling.api.servlets.SlingJakartaAllMethodsServlet;
@@ -91,84 +92,101 @@ import org.slf4j.LoggerFactory;
 /**
  * POST servlet that implements the sling client library "protocol"
  */
-@Component(service = Servlet.class,
-    property = {
+@Component(
+        service = Servlet.class,
+        property = {
             "service.description=Sling Post Servlet",
             "service.vendor=The Apache Software Foundation",
             "sling.servlet.prefix:Integer=-1",
             "sling.servlet.paths=sling/servlet/default/POST"
-    })
+        })
 @Designate(ocd = SlingPostServlet.Config.class)
 public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
 
     private static final long serialVersionUID = 1837674988291697074L;
 
-    @ObjectClassDefinition(name = "Apache Sling POST Servlet",
-            description="The Sling POST Servlet is registered as the default " +
-                        "servlet to handle POST requests in Sling.")
+    @ObjectClassDefinition(
+            name = "Apache Sling POST Servlet",
+            description = "The Sling POST Servlet is registered as the default "
+                    + "servlet to handle POST requests in Sling.")
     public @interface Config {
 
-        @AttributeDefinition(name = "Date Format",
-                description = "List SimpleDateFormat strings for date "+
-                     "formats supported for parsing from request input to data fields. The special "+
-                     "format \"ISO8601\" (without the quotes) can be used to designate strict ISO-8601 "+
-                     "parser which is able to parse strings generated by the Property.getString() "+
-                     "method for Date properties. The default "+
-                     "value is [ \"EEE MMM dd yyyy HH:mm:ss 'GMT'Z\", \"ISO8601\", "+
-                     "\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", "+
-                     "\"yyyy-MM-dd'T'HH:mm:ss\", \"yyyy-MM-dd\", \"dd.MM.yyyy HH:mm:ss\", \"dd.MM.yyyy\" ].")
-        String[] servlet_post_dateFormats() default { "EEE MMM dd yyyy HH:mm:ss 'GMT'Z", "ISO8601",
-            "yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss", "yyyy-MM-dd",
-            "dd.MM.yyyy HH:mm:ss", "dd.MM.yyyy" };
-
-        @AttributeDefinition(name = "Node Name Hint Properties",
-                    description = "The list of properties whose values "+
-                     "may be used to derive a name for newly created nodes. When handling a request "+
-                     "to create a new node, the name of the node is automatically generated if the "+
-                     "request URL ends with a star (\"*\") or a slash (\"/\"). In this case the request "+
-                     "parameters listed in this configuration value may be used to create the name. "+
-                     "Default value is [ \"title\", \"jcr:title\", \"name\", \"description\", "+
-                     "\"jcr:description\", \"abstract\", \"text\", \"jcr:text\" ].")
-        String[] servlet_post_nodeNameHints() default { "title", "jcr:title", "name", "description",
-            "jcr:description", "abstract", "text", "jcr:text" };
-
-        @AttributeDefinition(name = "Maximum Node Name Length",
-                    description = "Maximum number of characters to "+
-                     "use for automatically generated node names. The default value is 20. Note, "+
-                     "that actual node names may be generated with at most 4 more characters if the "+
-                     "numeric suffixes must be appended to make the name unique.")
+        @AttributeDefinition(
+                name = "Date Format",
+                description = "List SimpleDateFormat strings for date "
+                        + "formats supported for parsing from request input to data fields. The special "
+                        + "format \"ISO8601\" (without the quotes) can be used to designate strict ISO-8601 "
+                        + "parser which is able to parse strings generated by the Property.getString() "
+                        + "method for Date properties. The default "
+                        + "value is [ \"EEE MMM dd yyyy HH:mm:ss 'GMT'Z\", \"ISO8601\", "
+                        + "\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", "
+                        + "\"yyyy-MM-dd'T'HH:mm:ss\", \"yyyy-MM-dd\", \"dd.MM.yyyy HH:mm:ss\", \"dd.MM.yyyy\" ].")
+        String[] servlet_post_dateFormats() default {
+            "EEE MMM dd yyyy HH:mm:ss 'GMT'Z",
+            "ISO8601",
+            "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
+            "yyyy-MM-dd'T'HH:mm:ss",
+            "yyyy-MM-dd",
+            "dd.MM.yyyy HH:mm:ss",
+            "dd.MM.yyyy"
+        };
+
+        @AttributeDefinition(
+                name = "Node Name Hint Properties",
+                description = "The list of properties whose values "
+                        + "may be used to derive a name for newly created nodes. When handling a request "
+                        + "to create a new node, the name of the node is automatically generated if the "
+                        + "request URL ends with a star (\"*\") or a slash (\"/\"). In this case the request "
+                        + "parameters listed in this configuration value may be used to create the name. "
+                        + "Default value is [ \"title\", \"jcr:title\", \"name\", \"description\", "
+                        + "\"jcr:description\", \"abstract\", \"text\", \"jcr:text\" ].")
+        String[] servlet_post_nodeNameHints() default {
+            "title", "jcr:title", "name", "description", "jcr:description", "abstract", "text", "jcr:text"
+        };
+
+        @AttributeDefinition(
+                name = "Maximum Node Name Length",
+                description = "Maximum number of characters to "
+                        + "use for automatically generated node names. The default value is 20. Note, "
+                        + "that actual node names may be generated with at most 4 more characters if the "
+                        + "numeric suffixes must be appended to make the name unique.")
         int servlet_post_nodeNameMaxLength() default 20;
 
-        @AttributeDefinition(name = "Checkin New Versionable Nodes",
-                    description = "If true, newly created "+
-                     "versionable nodes or non-versionable nodes which are made versionable by the "+
-                     "addition of the mix:versionable mixin are checked in. By default, false.")
+        @AttributeDefinition(
+                name = "Checkin New Versionable Nodes",
+                description = "If true, newly created "
+                        + "versionable nodes or non-versionable nodes which are made versionable by the "
+                        + "addition of the mix:versionable mixin are checked in. By default, false.")
         boolean servlet_post_checkinNewVersionableNodes() default false;
 
-        @AttributeDefinition(name = "Auto Checkout Nodes",
-                    description = "If true, checked in nodes are "+
-                    "checked out when necessary. By default, false.")
+        @AttributeDefinition(
+                name = "Auto Checkout Nodes",
+                description = "If true, checked in nodes are " + "checked out when necessary. By default, false.")
         boolean servlet_post_autoCheckout() default false;
 
-        @AttributeDefinition(name = "Auto Checkin Nodes",
-                    description = "If true, nodes which are checked out "+
-                    "by the post servlet are checked in. By default, true.")
+        @AttributeDefinition(
+                name = "Auto Checkin Nodes",
+                description = "If true, nodes which are checked out "
+                        + "by the post servlet are checked in. By default, true.")
         boolean servlet_post_autoCheckin() default true;
 
-        @AttributeDefinition(name = "Ignored Parameters",
-                    description = "Configures a regular expression "+
-                            "pattern to select request parameters which should be ignored when writing "+
-                            "content to the repository. By default this is \"j_.*\" thus ignoring all "+
-                            "request parameters starting with j_ such as j_username.")
+        @AttributeDefinition(
+                name = "Ignored Parameters",
+                description = "Configures a regular expression "
+                        + "pattern to select request parameters which should be ignored when writing "
+                        + "content to the repository. By default this is \"j_.*\" thus ignoring all "
+                        + "request parameters starting with j_ such as j_username.")
         String servlet_post_ignorePattern() default "j_.*";
 
-        @AttributeDefinition(name="Backwards compatible statuscode",
-                description="In backwards compatibility mode exceptions will always create a statuscode "
-                    + "500 (see SLING-9896)")
+        @AttributeDefinition(
+                name = "Backwards compatible statuscode",
+                description = "In backwards compatibility mode exceptions will always create a statuscode "
+                        + "500 (see SLING-9896)")
         boolean legacy_statuscode_on_persistence_exception() default false;
 
-        @AttributeDefinition(name="Log stacktraces on exceptions",
-                description="Log the full stacktrace in case of an exception")
+        @AttributeDefinition(
+                name = "Log stacktraces on exceptions",
+                description = "Log the full stacktrace in case of an exception")
         boolean logStacktraceInExceptions() default true;
     }
 
@@ -220,19 +238,21 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
 
     public SlingPostServlet() {
         // the following operations require JCR:
-        if ( JCRSupport.INSTANCE.jcrEnabled()) {
+        if (JCRSupport.INSTANCE.jcrEnabled()) {
             try {
                 importOperation = new ImportOperation();
-            } catch ( final Throwable t) {
-                log.warn("Support for JCR operations like checkin, checkout, import, ordering etc. is currently disabled " +
-                    "in the servlets post module. Check whether the JCR API is available.", t);
+            } catch (final Throwable t) {
+                log.warn(
+                        "Support for JCR operations like checkin, checkout, import, ordering etc. is currently disabled "
+                                + "in the servlets post module. Check whether the JCR API is available.",
+                        t);
             }
         }
     }
 
     @Override
-    protected void doPost(final SlingJakartaHttpServletRequest request,
-            final SlingJakartaHttpServletResponse response) throws IOException {
+    protected void doPost(final SlingJakartaHttpServletRequest request, final SlingJakartaHttpServletResponse response)
+            throws IOException {
         final VersioningConfiguration localVersioningConfig = createRequestVersioningConfiguration(request);
 
         request.setAttribute(VersioningConfiguration.class.getName(), localVersioningConfig);
@@ -245,18 +265,16 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         if (operation == null) {
 
             htmlResponse.setStatus(
-                HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
-                "Invalid operation specified for POST request");
+                    HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Invalid operation specified for POST request");
 
         } else {
-            request.getRequestProgressTracker().log(
-                    "Calling PostOperation: {0}", operation.getClass().getName());
+            request.getRequestProgressTracker()
+                    .log("Calling PostOperation: {0}", operation.getClass().getName());
             final SlingJakartaPostProcessor[] processors = this.cachedPostProcessors;
             try {
                 operation.run(request, htmlResponse, processors);
             } catch (ResourceNotFoundException rnfe) {
-                htmlResponse.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                    rnfe.getMessage());
+                htmlResponse.setStatus(HttpServletResponse.SC_NOT_FOUND, rnfe.getMessage());
             } catch (final PreconditionViolatedPersistenceException e) {
                 logPersistenceException(request, operation, e);
                 if (backwardsCompatibleStatuscode) {
@@ -270,11 +288,15 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
                 if (backwardsCompatibleStatuscode) {
                     htmlResponse.setError(e);
                 } else {
-                    htmlResponse.setStatus(HttpServletResponse.SC_CONFLICT, "repository state conflicting with request");
+                    htmlResponse.setStatus(
+                            HttpServletResponse.SC_CONFLICT, "repository state conflicting with request");
                 }
             } catch (final Exception e) {
-                log.warn("Exception while handling POST on path [{}] with operation [{}]",
-                        request.getResource().getPath(),operation.getClass().getName(),e);
+                log.warn(
+                        "Exception while handling POST on path [{}] with operation [{}]",
+                        request.getResource().getPath(),
+                        operation.getClass().getName(),
+                        e);
                 htmlResponse.setError(e);
             }
         }
@@ -290,12 +312,17 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         htmlResponse.send(response, isSetStatus(request));
     }
 
-    protected void logPersistenceException (SlingJakartaHttpServletRequest request, JakartaPostOperation operation, Exception e ) {
+    protected void logPersistenceException(
+            SlingJakartaHttpServletRequest request, JakartaPostOperation operation, Exception e) {
         if (logStacktraceInExceptions) {
-            log.warn("Exception while handling POST on path [{}] with operation [{}]",
-                request.getResource().getPath(),operation.getClass().getName(),e);
+            log.warn(
+                    "Exception while handling POST on path [{}] with operation [{}]",
+                    request.getResource().getPath(),
+                    operation.getClass().getName(),
+                    e);
         } else {
-            log.warn("{} while handling POST on path [{}] with operation [{}]: {}",
+            log.warn(
+                    "{} while handling POST on path [{}] with operation [{}]: {}",
                     e.getClass().getName(),
                     request.getResource().getPath(),
                     operation.getClass().getName(),
@@ -303,7 +330,6 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         }
     }
 
-
     /**
      * Redirects the HttpServletResponse, if redirectURL is not empty
      * @param htmlResponse
@@ -312,7 +338,10 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * @return Whether a redirect was requested
      * @throws IOException
      */
-    boolean redirectIfNeeded(final SlingJakartaHttpServletRequest request, final JakartaPostResponse htmlResponse, final SlingJakartaHttpServletResponse response)
+    boolean redirectIfNeeded(
+            final SlingJakartaHttpServletRequest request,
+            final JakartaPostResponse htmlResponse,
+            final SlingJakartaHttpServletResponse response)
             throws IOException {
         final String redirectURL = getRedirectUrl(request, htmlResponse);
         if (redirectURL != null) {
@@ -333,6 +362,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         }
         return false;
     }
+
     private static final Pattern REDIRECT_WITH_SCHEME_PATTERN = Pattern.compile("^(https?://[^/]+)(.*)$");
 
     /**
@@ -358,7 +388,8 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         if (response == null) {
             // Fall through to default behavior
             final JakartaMediaRangeList mediaRangeList = new JakartaMediaRangeList(req);
-            if (JakartaJSONResponse.RESPONSE_CONTENT_TYPE.equals(mediaRangeList.prefer("text/html", JakartaJSONResponse.RESPONSE_CONTENT_TYPE))) {
+            if (JakartaJSONResponse.RESPONSE_CONTENT_TYPE.equals(
+                    mediaRangeList.prefer("text/html", JakartaJSONResponse.RESPONSE_CONTENT_TYPE))) {
                 response = new JakartaJSONResponse();
             } else {
                 response = new JakartaHtmlResponse();
@@ -379,7 +410,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * @param request the request to check
      * @return true or false
      */
-    private boolean isSendError(SlingJakartaHttpServletRequest request){
+    private boolean isSendError(SlingJakartaHttpServletRequest request) {
         boolean sendError = false;
         String sendErrorParam = request.getParameter(SlingPostConstants.RP_SEND_ERROR);
         if (sendErrorParam != null && "true".equalsIgnoreCase(sendErrorParam)) {
@@ -388,8 +419,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         return sendError;
     }
 
-    private JakartaPostOperation getSlingPostOperation(
-            final SlingJakartaHttpServletRequest request) {
+    private JakartaPostOperation getSlingPostOperation(final SlingJakartaHttpServletRequest request) {
         if (streamedUploadOperation.isRequestStreamed(request)) {
             return streamedUploadOperation;
         }
@@ -400,7 +430,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         }
 
         // named operation, retrieve from map
-        synchronized ( this.postOperations ) {
+        synchronized (this.postOperations) {
             return postOperations.get(operation);
         }
     }
@@ -419,7 +449,10 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
                 URI redirectUri = new URI(result);
                 if (redirectUri.getAuthority() != null) {
                     // if it has a host information
-                    log.warn("redirect target ({}) does include host information ({}). This is not allowed for security reasons!", result, redirectUri.getAuthority());
+                    log.warn(
+                            "redirect target ({}) does include host information ({}). This is not allowed for security reasons!",
+                            result,
+                            redirectUri.getAuthority());
                     return null;
                 }
             } catch (URISyntaxException e) {
@@ -449,8 +482,9 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
 
                 // Prepend request path if it ends with create suffix and result isn't absolute
                 final String requestPath = request.getPathInfo();
-                if (requestPath.endsWith(SlingPostConstants.DEFAULT_CREATE_SUFFIX) && buf.charAt(0) != '/' &&
-                        !REDIRECT_WITH_SCHEME_PATTERN.matcher(buf).matches()) {
+                if (requestPath.endsWith(SlingPostConstants.DEFAULT_CREATE_SUFFIX)
+                        && buf.charAt(0) != '/'
+                        && !REDIRECT_WITH_SCHEME_PATTERN.matcher(buf).matches()) {
                     buf.insert(0, requestPath);
                 }
 
@@ -472,28 +506,24 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         final String statusParam = request.getParameter(SlingPostConstants.RP_STATUS);
         if (statusParam == null) {
             log.debug(
-                "getStatusMode: Parameter {} not set, assuming standard status code",
-                SlingPostConstants.RP_STATUS);
+                    "getStatusMode: Parameter {} not set, assuming standard status code", SlingPostConstants.RP_STATUS);
             return true;
         }
 
         if (SlingPostConstants.STATUS_VALUE_BROWSER.equals(statusParam)) {
-            log.debug(
-                "getStatusMode: Parameter {} asks for user-friendly status code",
-                SlingPostConstants.RP_STATUS);
+            log.debug("getStatusMode: Parameter {} asks for user-friendly status code", SlingPostConstants.RP_STATUS);
             return false;
         }
 
         if (SlingPostConstants.STATUS_VALUE_STANDARD.equals(statusParam)) {
-            log.debug(
-                "getStatusMode: Parameter {} asks for standard status code",
-                SlingPostConstants.RP_STATUS);
+            log.debug("getStatusMode: Parameter {} asks for standard status code", SlingPostConstants.RP_STATUS);
             return true;
         }
 
         log.debug(
-            "getStatusMode: Parameter {} set to unknown value {}, assuming standard status code",
-            SlingPostConstants.RP_STATUS, statusParam);
+                "getStatusMode: Parameter {} set to unknown value {}, assuming standard status code",
+                SlingPostConstants.RP_STATUS,
+                statusParam);
         return true;
     }
 
@@ -501,48 +531,41 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
 
     @SuppressWarnings("unchecked")
     @Activate
-    protected void activate(final BundleContext bundleContext,
-            final Config configuration) {
+    protected void activate(final BundleContext bundleContext, final Config configuration) {
         // configure now
         this.configure(configuration);
 
         // other predefined operations
         final ArrayList<ServiceRegistration<JakartaPostOperation>> providedServices = new ArrayList<>();
-        providedServices.add(registerOperation(bundleContext,
-            SlingPostConstants.OPERATION_MODIFY, modifyOperation));
-        providedServices.add(registerOperation(bundleContext,
-            SlingPostConstants.OPERATION_COPY, new CopyOperation()));
-        providedServices.add(registerOperation(bundleContext,
-            SlingPostConstants.OPERATION_MOVE, new MoveOperation()));
-        providedServices.add(registerOperation(bundleContext,
-            SlingPostConstants.OPERATION_DELETE, new DeleteOperation()));
-        providedServices.add(registerOperation(bundleContext,
-            SlingPostConstants.OPERATION_NOP, new NopOperation()));
+        providedServices.add(registerOperation(bundleContext, SlingPostConstants.OPERATION_MODIFY, modifyOperation));
+        providedServices.add(registerOperation(bundleContext, SlingPostConstants.OPERATION_COPY, new CopyOperation()));
+        providedServices.add(registerOperation(bundleContext, SlingPostConstants.OPERATION_MOVE, new MoveOperation()));
+        providedServices.add(
+                registerOperation(bundleContext, SlingPostConstants.OPERATION_DELETE, new DeleteOperation()));
+        providedServices.add(registerOperation(bundleContext, SlingPostConstants.OPERATION_NOP, new NopOperation()));
 
         // the following operations require JCR:
-        if ( JCRSupport.INSTANCE.jcrEnabled() && importOperation != null) {
-            providedServices.add(registerOperation(bundleContext,
-                SlingPostConstants.OPERATION_IMPORT, importOperation));
-            providedServices.add(registerOperation(bundleContext,
-                    SlingPostConstants.OPERATION_CHECKIN, new CheckinOperation()));
-            providedServices.add(registerOperation(bundleContext,
-                    SlingPostConstants.OPERATION_CHECKOUT, new CheckoutOperation()));
-            providedServices.add(registerOperation(bundleContext,
-                    SlingPostConstants.OPERATION_RESTORE, new RestoreOperation()));
+        if (JCRSupport.INSTANCE.jcrEnabled() && importOperation != null) {
+            providedServices.add(
+                    registerOperation(bundleContext, SlingPostConstants.OPERATION_IMPORT, importOperation));
+            providedServices.add(
+                    registerOperation(bundleContext, SlingPostConstants.OPERATION_CHECKIN, new CheckinOperation()));
+            providedServices.add(
+                    registerOperation(bundleContext, SlingPostConstants.OPERATION_CHECKOUT, new CheckoutOperation()));
+            providedServices.add(
+                    registerOperation(bundleContext, SlingPostConstants.OPERATION_RESTORE, new RestoreOperation()));
         }
         internalOperations = providedServices.toArray(new ServiceRegistration[providedServices.size()]);
     }
 
-    private ServiceRegistration<JakartaPostOperation> registerOperation(final BundleContext context,
-            final String opCode, final JakartaPostOperation operation) {
+    private ServiceRegistration<JakartaPostOperation> registerOperation(
+            final BundleContext context, final String opCode, final JakartaPostOperation operation) {
         final Hashtable<String, Object> properties = new Hashtable<>();
         properties.put(JakartaPostOperation.PROP_OPERATION_NAME, opCode);
-        properties.put(Constants.SERVICE_DESCRIPTION,
-            "Apache Sling POST Servlet Operation " + opCode);
-        properties.put(Constants.SERVICE_VENDOR,
-            context.getBundle().getHeaders().get(Constants.BUNDLE_VENDOR));
-        return context.registerService(JakartaPostOperation.class, operation,
-            properties);
+        properties.put(Constants.SERVICE_DESCRIPTION, "Apache Sling POST Servlet Operation " + opCode);
+        properties.put(
+                Constants.SERVICE_VENDOR, context.getBundle().getHeaders().get(Constants.BUNDLE_VENDOR));
+        return context.registerService(JakartaPostOperation.class, operation, properties);
     }
 
     @Override
@@ -561,16 +584,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
             try {
                 dateParser.register(dateFormat);
             } catch (Throwable t) {
-                log.warn(
-                    "configure: Ignoring DateParser format {} because it is invalid: {}",
-                    dateFormat, t);
+                log.warn("configure: Ignoring DateParser format {} because it is invalid: {}", dateFormat, t);
             }
         }
 
         final String[] nameHints = configuration.servlet_post_nodeNameHints();
         final int nameMax = configuration.servlet_post_nodeNameMaxLength();
-        final JakartaNodeNameGenerator nodeNameGenerator = new DefaultNodeNameGenerator(
-            nameHints, nameMax);
+        final JakartaNodeNameGenerator nodeNameGenerator = new DefaultNodeNameGenerator(nameHints, nameMax);
 
         final String paramMatch = configuration.servlet_post_ignorePattern();
         final Pattern paramMatchPattern = Pattern.compile(paramMatch);
@@ -578,7 +598,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         this.modifyOperation.setDateParser(dateParser);
         this.modifyOperation.setDefaultNodeNameGenerator(nodeNameGenerator);
         this.modifyOperation.setIgnoredParameterNamePattern(paramMatchPattern);
-        if ( this.importOperation != null ) {
+        if (this.importOperation != null) {
             this.importOperation.setDefaultNodeNameGenerator(nodeNameGenerator);
             this.importOperation.setIgnoredParameterNamePattern(paramMatchPattern);
         }
@@ -601,7 +621,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
             internalOperations = null;
         }
         modifyOperation.setExtraNodeNameGenerators(null);
-        if ( this.importOperation != null ) {
+        if (this.importOperation != null) {
             this.importOperation = null;
         }
     }
@@ -609,12 +629,14 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Bind a new post operation
      */
-    @Reference(service = JakartaPostOperation.class,
+    @Reference(
+            service = JakartaPostOperation.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
-    protected void bindJakartaPostOperation(final JakartaPostOperation operation, final Map<String, Object> properties) {
+    protected void bindJakartaPostOperation(
+            final JakartaPostOperation operation, final Map<String, Object> properties) {
         final String operationName = (String) properties.get(JakartaPostOperation.PROP_OPERATION_NAME);
-        if ( operationName != null && operation != null ) {
+        if (operationName != null && operation != null) {
             synchronized (this.postOperations) {
                 this.postOperations.put(operationName, operation);
             }
@@ -624,9 +646,10 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Unbind a post operation
      */
-    protected void unbindJakartaPostOperation(final JakartaPostOperation operation, final Map<String, Object> properties) {
+    protected void unbindJakartaPostOperation(
+            final JakartaPostOperation operation, final Map<String, Object> properties) {
         final String operationName = (String) properties.get(JakartaPostOperation.PROP_OPERATION_NAME);
-        if ( operationName != null ) {
+        if (operationName != null) {
             synchronized (this.postOperations) {
                 this.postOperations.remove(operationName);
             }
@@ -637,7 +660,8 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * Bind a new post operation
      */
     @SuppressWarnings("deprecation")
-    @Reference(service = PostOperation.class,
+    @Reference(
+            service = PostOperation.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
     protected void bindPostOperation(final PostOperation operation, final Map<String, Object> properties) {
@@ -654,27 +678,28 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
 
     private int getRanking(final Map<String, Object> properties) {
         final Object val = properties.get(Constants.SERVICE_RANKING);
-        return val instanceof Integer ? (Integer)val : 0;
+        return val instanceof Integer ? (Integer) val : 0;
     }
 
     /**
      * Bind a new post processor
      */
-    @Reference(service = SlingJakartaPostProcessor.class,
+    @Reference(
+            service = SlingJakartaPostProcessor.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
-    protected void bindJakartaPostProcessor(final SlingJakartaPostProcessor processor, final Map<String, Object> properties) {
+    protected void bindJakartaPostProcessor(
+            final SlingJakartaPostProcessor processor, final Map<String, Object> properties) {
         final PostProcessorHolder pph = new PostProcessorHolder();
         pph.processor = processor;
         pph.ranking = getRanking(properties);
 
-        synchronized ( this.postProcessors ) {
+        synchronized (this.postProcessors) {
             int index = 0;
-            while ( index < this.postProcessors.size() &&
-                    pph.ranking < this.postProcessors.get(index).ranking ) {
+            while (index < this.postProcessors.size() && pph.ranking < this.postProcessors.get(index).ranking) {
                 index++;
             }
-            if ( index == this.postProcessors.size() ) {
+            if (index == this.postProcessors.size()) {
                 this.postProcessors.add(pph);
             } else {
                 this.postProcessors.add(index, pph);
@@ -686,12 +711,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Unbind a post processor
      */
-    protected void unbindJakartaPostProcessor(final SlingJakartaPostProcessor processor, final Map<String, Object> properties) {
-        synchronized ( this.postProcessors ) {
+    protected void unbindJakartaPostProcessor(
+            final SlingJakartaPostProcessor processor, final Map<String, Object> properties) {
+        synchronized (this.postProcessors) {
             final Iterator<PostProcessorHolder> i = this.postProcessors.iterator();
-            while ( i.hasNext() ) {
+            while (i.hasNext()) {
                 final PostProcessorHolder current = i.next();
-                if ( current.isSame(processor) ) {
+                if (current.isSame(processor)) {
                     i.remove();
                 }
             }
@@ -703,7 +729,8 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * Bind a new post processor
      */
     @SuppressWarnings("deprecation")
-    @Reference(service = SlingPostProcessor.class,
+    @Reference(
+            service = SlingPostProcessor.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
     protected void bindPostProcessor(final SlingPostProcessor processor, final Map<String, Object> properties) {
@@ -725,7 +752,7 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     private void updatePostProcessorCache() {
         final SlingJakartaPostProcessor[] localCache = new SlingJakartaPostProcessor[this.postProcessors.size()];
         int index = 0;
-        for(final PostProcessorHolder current : this.postProcessors) {
+        for (final PostProcessorHolder current : this.postProcessors) {
             localCache[index] = current.processor;
             index++;
         }
@@ -735,21 +762,23 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Bind a new node name generator
      */
-    @Reference(service = JakartaNodeNameGenerator.class,
+    @Reference(
+            service = JakartaNodeNameGenerator.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
-    protected void bindJakartaNodeNameGenerator(final JakartaNodeNameGenerator generator, final Map<String, Object> properties) {
+    protected void bindJakartaNodeNameGenerator(
+            final JakartaNodeNameGenerator generator, final Map<String, Object> properties) {
         final NodeNameGeneratorHolder nngh = new NodeNameGeneratorHolder();
         nngh.generator = generator;
         nngh.ranking = getRanking(properties);
 
-        synchronized ( this.nodeNameGenerators ) {
+        synchronized (this.nodeNameGenerators) {
             int index = 0;
-            while ( index < this.nodeNameGenerators.size() &&
-                    nngh.ranking < this.nodeNameGenerators.get(index).ranking ) {
+            while (index < this.nodeNameGenerators.size()
+                    && nngh.ranking < this.nodeNameGenerators.get(index).ranking) {
                 index++;
             }
-            if ( index == this.nodeNameGenerators.size() ) {
+            if (index == this.nodeNameGenerators.size()) {
                 this.nodeNameGenerators.add(nngh);
             } else {
                 this.nodeNameGenerators.add(index, nngh);
@@ -761,12 +790,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Unbind a node name generator
      */
-    protected void unbindJakartaNodeNameGenerator(final JakartaNodeNameGenerator generator, final Map<String, Object> properties) {
-        synchronized ( this.nodeNameGenerators ) {
+    protected void unbindJakartaNodeNameGenerator(
+            final JakartaNodeNameGenerator generator, final Map<String, Object> properties) {
+        synchronized (this.nodeNameGenerators) {
             final Iterator<NodeNameGeneratorHolder> i = this.nodeNameGenerators.iterator();
-            while ( i.hasNext() ) {
+            while (i.hasNext()) {
                 final NodeNameGeneratorHolder current = i.next();
-                if ( current.isSame(generator) ) {
+                if (current.isSame(generator)) {
                     i.remove();
                 }
             }
@@ -778,7 +808,8 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * Bind a new node name generator
      */
     @SuppressWarnings("deprecation")
-    @Reference(service = NodeNameGenerator.class,
+    @Reference(
+            service = NodeNameGenerator.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
     protected void bindNodeNameGenerator(final NodeNameGenerator generator, final Map<String, Object> properties) {
@@ -800,13 +831,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     private void updateNodeNameGeneratorCache() {
         final JakartaNodeNameGenerator[] localCache = new JakartaNodeNameGenerator[this.nodeNameGenerators.size()];
         int index = 0;
-        for(final NodeNameGeneratorHolder current : this.nodeNameGenerators) {
+        for (final NodeNameGeneratorHolder current : this.nodeNameGenerators) {
             localCache[index] = current.generator;
             index++;
         }
         this.cachedNodeNameGenerators = localCache;
         this.modifyOperation.setExtraNodeNameGenerators(this.cachedNodeNameGenerators);
-        if ( this.importOperation != null ) {
+        if (this.importOperation != null) {
             this.importOperation.setExtraNodeNameGenerators(this.cachedNodeNameGenerators);
         }
     }
@@ -814,21 +845,23 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Bind a new post response creator
      */
-    @Reference(service = JakartaPostResponseCreator.class,
+    @Reference(
+            service = JakartaPostResponseCreator.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
-    protected void bindJakartaPostResponseCreator(final JakartaPostResponseCreator creator, final Map<String, Object> properties) {
+    protected void bindJakartaPostResponseCreator(
+            final JakartaPostResponseCreator creator, final Map<String, Object> properties) {
         final PostResponseCreatorHolder nngh = new PostResponseCreatorHolder();
         nngh.creator = creator;
         nngh.ranking = getRanking(properties);
 
-        synchronized ( this.postResponseCreators ) {
+        synchronized (this.postResponseCreators) {
             int index = 0;
-            while ( index < this.postResponseCreators.size() &&
-                    nngh.ranking < this.postResponseCreators.get(index).ranking ) {
+            while (index < this.postResponseCreators.size()
+                    && nngh.ranking < this.postResponseCreators.get(index).ranking) {
                 index++;
             }
-            if ( index == this.postResponseCreators.size() ) {
+            if (index == this.postResponseCreators.size()) {
                 this.postResponseCreators.add(nngh);
             } else {
                 this.postResponseCreators.add(index, nngh);
@@ -840,12 +873,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
     /**
      * Unbind a post response creator
      */
-    protected void unbindJakartaPostResponseCreator(final JakartaPostResponseCreator creator, final Map<String, Object> properties) {
-        synchronized ( this.postResponseCreators ) {
+    protected void unbindJakartaPostResponseCreator(
+            final JakartaPostResponseCreator creator, final Map<String, Object> properties) {
+        synchronized (this.postResponseCreators) {
             final Iterator<PostResponseCreatorHolder> i = this.postResponseCreators.iterator();
-            while ( i.hasNext() ) {
+            while (i.hasNext()) {
                 final PostResponseCreatorHolder current = i.next();
-                if ( current.isSame(creator) ) {
+                if (current.isSame(creator)) {
                     i.remove();
                 }
             }
@@ -857,7 +891,8 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * Bind a new post response creator
      */
     @SuppressWarnings("deprecation")
-    @Reference(service = PostResponseCreator.class,
+    @Reference(
+            service = PostResponseCreator.class,
             cardinality = ReferenceCardinality.MULTIPLE,
             policy = ReferencePolicy.DYNAMIC)
     protected void bindPostResponseCreator(final PostResponseCreator creator, final Map<String, Object> properties) {
@@ -877,27 +912,29 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
      * This method is called by sync'ed methods, no need to add additional syncing.
      */
     private void updatePostResponseCreatorCache() {
-        final JakartaPostResponseCreator[] localCache = new JakartaPostResponseCreator[this.postResponseCreators.size()];
+        final JakartaPostResponseCreator[] localCache =
+                new JakartaPostResponseCreator[this.postResponseCreators.size()];
         int index = 0;
-        for(final PostResponseCreatorHolder current : this.postResponseCreators) {
+        for (final PostResponseCreatorHolder current : this.postResponseCreators) {
             localCache[index] = current.creator;
             index++;
         }
         this.cachedPostResponseCreators = localCache;
     }
 
-    @Reference(service = ContentImporter.class,
+    @Reference(
+            service = ContentImporter.class,
             cardinality = ReferenceCardinality.OPTIONAL,
             policy = ReferencePolicy.DYNAMIC,
             policyOption = ReferencePolicyOption.GREEDY)
     protected void bindContentImporter(final Object importer) {
-        if ( this.importOperation != null ) {
+        if (this.importOperation != null) {
             importOperation.setContentImporter(importer);
         }
     }
 
     protected void unbindContentImporter(final Object importer) {
-        if ( this.importOperation != null ) {
+        if (this.importOperation != null) {
             importOperation.unsetContentImporter(importer);
         }
     }
@@ -933,12 +970,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         public int ranking;
 
         public boolean isSame(final SlingJakartaPostProcessor processor) {
-            if ( this.processor == processor ) {
+            if (this.processor == processor) {
                 return true;
             }
-            if ( processor instanceof JavaxToSlingJakartaPostProcessor
-                    && this.processor instanceof JavaxToSlingJakartaPostProcessor ) {
-                return ((JavaxToSlingJakartaPostProcessor)processor).getDelegate() == ((JavaxToSlingJakartaPostProcessor)this.processor).getDelegate();
+            if (processor instanceof JavaxToSlingJakartaPostProcessor
+                    && this.processor instanceof JavaxToSlingJakartaPostProcessor) {
+                return ((JavaxToSlingJakartaPostProcessor) processor).getDelegate()
+                        == ((JavaxToSlingJakartaPostProcessor) this.processor).getDelegate();
             }
             return false;
         }
@@ -949,12 +987,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         public int ranking;
 
         public boolean isSame(final JakartaNodeNameGenerator generator) {
-            if ( this.generator == generator ) {
+            if (this.generator == generator) {
                 return true;
             }
-            if ( generator instanceof JavaxToJakartaNodeNameGenerator
-                    && this.generator instanceof JavaxToJakartaNodeNameGenerator ) {
-                return ((JavaxToJakartaNodeNameGenerator)generator).getDelegate() == ((JavaxToJakartaNodeNameGenerator)this.generator).getDelegate();
+            if (generator instanceof JavaxToJakartaNodeNameGenerator
+                    && this.generator instanceof JavaxToJakartaNodeNameGenerator) {
+                return ((JavaxToJakartaNodeNameGenerator) generator).getDelegate()
+                        == ((JavaxToJakartaNodeNameGenerator) this.generator).getDelegate();
             }
             return false;
         }
@@ -965,12 +1004,13 @@ public class SlingPostServlet extends SlingJakartaAllMethodsServlet {
         public int ranking;
 
         public boolean isSame(final JakartaPostResponseCreator creator) {
-            if ( this.creator == creator ) {
+            if (this.creator == creator) {
                 return true;
             }
-            if ( creator instanceof JavaxToJakartaPostResponseCreator
-                    && this.creator instanceof JavaxToJakartaPostResponseCreator ) {
-                return ((JavaxToJakartaPostResponseCreator)creator).getDelegate() == ((JavaxToJakartaPostResponseCreator)this.creator).getDelegate();
+            if (creator instanceof JavaxToJakartaPostResponseCreator
+                    && this.creator instanceof JavaxToJakartaPostResponseCreator) {
+                return ((JavaxToJakartaPostResponseCreator) creator).getDelegate()
+                        == ((JavaxToJakartaPostResponseCreator) this.creator).getDelegate();
             }
             return false;
         }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/Chunk.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/Chunk.java
index 60b5d41..748850d 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/Chunk.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/Chunk.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -78,5 +80,4 @@ public class Chunk {
     public void setCompleted(boolean complete) {
         this.completed = complete;
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java
index 6d87240..83c57fd 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/ChunkCleanUpTask.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -54,28 +56,31 @@ import org.slf4j.LoggerFactory;
  * default workspace assuming users are stored in that workspace and the
  * administrative user has full access.
  */
-@Component(service = Runnable.class,
-    property = {
-           "service.description=Periodic Chunk Cleanup Job",
-           "service.vendor=The Apache Software Foundation"
-    })
+@Component(
+        service = Runnable.class,
+        property = {"service.description=Periodic Chunk Cleanup Job", "service.vendor=The Apache Software Foundation"})
 @Designate(ocd = ChunkCleanUpTask.Config.class)
 public class ChunkCleanUpTask implements Runnable {
 
-    @ObjectClassDefinition(name = "Apache Sling Post Chunk Upload : Cleanup Task",
+    @ObjectClassDefinition(
+            name = "Apache Sling Post Chunk Upload : Cleanup Task",
             description = "Task to regularly purge incomplete chunks from the repository")
     public @interface Config {
 
-        @AttributeDefinition(name = "Schedule", description = "Cron expression scheudling this job. Default is hourly 17m23s after the hour. "
-                + "See http://www.docjar.com/docs/api/org/quartz/CronTrigger.html for a description "
-                + "of the format for this value.")
+        @AttributeDefinition(
+                name = "Schedule",
+                description = "Cron expression scheudling this job. Default is hourly 17m23s after the hour. "
+                        + "See http://www.docjar.com/docs/api/org/quartz/CronTrigger.html for a description "
+                        + "of the format for this value.")
         String scheduler_expression() default "31 41 0/12 * * ?";
 
-        @AttributeDefinition(name = "scheduler.concurrent",
+        @AttributeDefinition(
+                name = "scheduler.concurrent",
                 description = "Allow Chunk Cleanup Task to run concurrently (default: false).")
         boolean scheduler_concurrent() default false;
 
-        @AttributeDefinition(name = "Cleanup Age",
+        @AttributeDefinition(
+                name = "Cleanup Age",
                 description = "The chunk's age in minutes before it is considered for clean up.")
         int chunk_cleanup_age() default 360;
     }
@@ -120,8 +125,7 @@ public class ChunkCleanUpTask implements Runnable {
         try {
             admin = rrFactory.getAdministrativeResourceResolver(null);
 
-            final Iterator<Resource> rsrcIter = admin.findResources(
-                "SELECT * FROM [sling:chunks] ", "sql");
+            final Iterator<Resource> rsrcIter = admin.findResources("SELECT * FROM [sling:chunks] ", "sql");
             while (rsrcIter.hasNext()) {
                 final Resource rsrc = rsrcIter.next();
                 if (isEligibleForCleanUp(rsrc)) {
@@ -141,9 +145,7 @@ public class ChunkCleanUpTask implements Runnable {
             }
 
         } catch (Throwable t) {
-            log.error(
-                "ChunkCleanUpTask: General failure while trying to cleanup chunks",
-                t);
+            log.error("ChunkCleanUpTask: General failure while trying to cleanup chunks", t);
         } finally {
             if (admin != null) {
                 admin.close();
@@ -151,8 +153,8 @@ public class ChunkCleanUpTask implements Runnable {
         }
         long end = System.currentTimeMillis();
         log.info(
-            "ChunkCleanUpTask finished: Removed {} chunk upload(s) in {}ms ({} chunk upload(s) still active)",
-            new Object[] { numCleaned, (end - start), numLive });
+                "ChunkCleanUpTask finished: Removed {} chunk upload(s) in {}ms ({} chunk upload(s) still active)",
+                new Object[] {numCleaned, (end - start), numLive});
     }
 
     /**
@@ -170,9 +172,9 @@ public class ChunkCleanUpTask implements Runnable {
     private boolean isEligibleForCleanUp(Resource rsrc) {
         boolean result = false;
         final Resource lastChunkNode = uploadhandler.getLastChunk(rsrc);
-        if ( lastChunkNode != null ) {
+        if (lastChunkNode != null) {
             final Calendar created = lastChunkNode.getValueMap().get(JcrConstants.JCR_CREATED, Calendar.class);
-            if ( created != null && System.currentTimeMillis() - created.getTimeInMillis() > chunkCleanUpAge ) {
+            if (created != null && System.currentTimeMillis() - created.getTimeInMillis() > chunkCleanUpAge) {
                 result = true;
             }
         }
@@ -182,9 +184,9 @@ public class ChunkCleanUpTask implements Runnable {
     @Activate
     protected void activate(final Config configuration) {
         chunkCleanUpAge = configuration.chunk_cleanup_age();
-        log.info("scheduler config [{}], chunkGarbageTime  [{}] ms",
-            configuration.scheduler_expression(),
-            chunkCleanUpAge);
-
+        log.info(
+                "scheduler config [{}], chunkGarbageTime  [{}] ms",
+                configuration.scheduler_expression(),
+                chunkCleanUpAge);
     }
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/DateParser.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/DateParser.java
index d2cea2e..143b024 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/DateParser.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/DateParser.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -72,8 +74,7 @@ public class DateParser {
             try {
                 final Calendar c = fmt.parse(source);
                 if (log.isDebugEnabled()) {
-                    log.debug("Parsed " + source + " using " + fmt + " into "
-                        + c);
+                    log.debug("Parsed " + source + " using " + fmt + " into " + c);
                 }
                 return c;
             } catch (ParseException e) {
@@ -95,7 +96,7 @@ public class DateParser {
      */
     public Calendar[] parse(String sources[]) {
         Calendar ret[] = new Calendar[sources.length];
-        for (int i=0; i< sources.length; i++) {
+        for (int i = 0; i < sources.length; i++) {
             if ((ret[i] = parse(sources[i])) == null) {
                 return null;
             }
@@ -142,9 +143,7 @@ public class DateParser {
             try {
                 final Calendar c = ISO8601.parse(dateTime);
                 if (c == null) {
-                    throw new ParseException(dateTime
-                        + " cannot be parsed as ISO8601 formatted date string",
-                        0);
+                    throw new ParseException(dateTime + " cannot be parsed as ISO8601 formatted date string", 0);
                 }
                 return c;
             } catch (Exception e) {
@@ -157,5 +156,4 @@ public class DateParser {
             return "ISO8601 Parser";
         }
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGenerator.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGenerator.java
index 92cb672..05069ef 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGenerator.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGenerator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -48,9 +50,7 @@ public class DefaultNodeNameGenerator implements JakartaNodeNameGenerator {
             this.parameterNames = parameterNames;
         }
 
-        this.maxLength = (maxNameLength > 0)
-                ? maxNameLength
-                : DEFAULT_MAX_NAME_LENGTH;
+        this.maxLength = (maxNameLength > 0) ? maxNameLength : DEFAULT_MAX_NAME_LENGTH;
     }
 
     /**
@@ -93,7 +93,8 @@ public class DefaultNodeNameGenerator implements JakartaNodeNameGenerator {
                         // @ValueFrom params must have exactly one value, else ignored
                         if (refParams != null && refParams.length == 1) {
                             specialParam = refParams[0];
-                            if (specialParam != null && !specialParam.getString().isEmpty()) {
+                            if (specialParam != null
+                                    && !specialParam.getString().isEmpty()) {
                                 valueToUse = specialParam.getString();
                             }
                         }
@@ -124,21 +125,24 @@ public class DefaultNodeNameGenerator implements JakartaNodeNameGenerator {
      * @param defaultNodeNameGenerator a default generator
      * @return a nice node name
      */
-    public String getNodeName(SlingJakartaHttpServletRequest request, String basePath,
-            boolean requirePrefix, JakartaNodeNameGenerator defaultNodeNameGenerator) {
+    public String getNodeName(
+            SlingJakartaHttpServletRequest request,
+            String basePath,
+            boolean requirePrefix,
+            JakartaNodeNameGenerator defaultNodeNameGenerator) {
         RequestParameterMap parameters = request.getRequestParameterMap();
         String valueToUse = null;
         boolean doFilter = true;
 
         // find the first request parameter that matches one of
         // our parameterNames, in order, and has a value
-        if (parameters!=null) {
+        if (parameters != null) {
             // we first check for the special sling parameters
             valueToUse = getValueToUse(parameters, SlingPostConstants.RP_NODE_NAME);
             if (valueToUse != null) {
                 doFilter = false;
             }
-            if ( valueToUse == null ) {
+            if (valueToUse == null) {
                 valueToUse = getValueToUse(parameters, SlingPostConstants.RP_NODE_NAME_HINT);
             }
 
@@ -157,7 +161,7 @@ public class DefaultNodeNameGenerator implements JakartaNodeNameGenerator {
         String result;
         // should we filter?
         if (valueToUse != null) {
-            if ( doFilter ) {
+            if (doFilter) {
                 // filter value so that it works as a node name
                 result = filter.filter(valueToUse);
             } else {
@@ -168,10 +172,10 @@ public class DefaultNodeNameGenerator implements JakartaNodeNameGenerator {
             result = nextCounter() + "_" + System.currentTimeMillis();
         }
 
-        if ( doFilter ) {
+        if (doFilter) {
             // max length
             if (result.length() > maxLength) {
-                result = result.substring(0,maxLength);
+                result = result.substring(0, maxLength);
             }
         }
 
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlPostResponseProxy.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlPostResponseProxy.java
index 3ae5da2..60735f8 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlPostResponseProxy.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlPostResponseProxy.java
@@ -18,10 +18,10 @@
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 import org.apache.sling.api.servlets.HtmlResponse;
 import org.apache.sling.servlets.post.PostResponse;
 
@@ -132,8 +132,7 @@ public class HtmlPostResponseProxy implements PostResponse {
     }
 
     @Override
-    public void send(HttpServletResponse response, boolean setStatus)
-            throws IOException {
+    public void send(HttpServletResponse response, boolean setStatus) throws IOException {
         apiHtmlResponse.send(response, setStatus);
     }
 
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxy.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxy.java
index 1e9fc60..fcc8731 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxy.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxy.java
@@ -18,10 +18,10 @@
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 import org.apache.sling.api.servlets.HtmlResponse;
 import org.apache.sling.servlets.post.PostResponse;
 
@@ -45,7 +45,7 @@ public class HtmlResponseProxy extends HtmlResponse {
     private boolean createRequest;
 
     public HtmlResponseProxy(final PostResponse postResponse) {
-        if(postResponse == null) {
+        if (postResponse == null) {
             throw new IllegalArgumentException("Null PostResponse, cannot build HtmlResponseProxy");
         }
         this.postResponse = postResponse;
@@ -130,14 +130,13 @@ public class HtmlResponseProxy extends HtmlResponse {
         postResponse.onMoved(srcPath, dstPath);
     }
 
-    public void send(HttpServletResponse response, boolean setStatus)
-            throws IOException {
+    public void send(HttpServletResponse response, boolean setStatus) throws IOException {
         postResponse.send(response, setStatus);
     }
 
     public void setCreateRequest(boolean isCreateRequest) {
         createRequest = isCreateRequest;
-        if(postResponse != null) {
+        if (postResponse != null) {
             // ugly...needed because of SLING-2453, this is called
             // by the base class's constructor before postResponse is set
             postResponse.setCreateRequest(isCreateRequest);
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupport.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupport.java
index 8ab83d4..34d74c6 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupport.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupport.java
@@ -41,100 +41,98 @@ public class JCRSupport {
         Object impl = null;
         try {
             impl = new JCRSupportImpl();
-        } catch ( final Throwable t) {
-            logger.warn("Support for JCR operations like checkin, checkout, import, ordering etc. is currently disabled " +
-                        "in the servlets post module. Check whether the JCR API is available.");
+        } catch (final Throwable t) {
+            logger.warn(
+                    "Support for JCR operations like checkin, checkout, import, ordering etc. is currently disabled "
+                            + "in the servlets post module. Check whether the JCR API is available.");
         }
         this.supportImpl = impl;
     }
 
-    public boolean checkin(final Resource rsrc)
-    throws PersistenceException {
-        if ( rsrc != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).checkin(rsrc);
+    public boolean checkin(final Resource rsrc) throws PersistenceException {
+        if (rsrc != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).checkin(rsrc);
         }
         return false;
     }
 
-    public void checkoutIfNecessary(final Resource rsrc,
+    public void checkoutIfNecessary(
+            final Resource rsrc,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
-        if ( rsrc != null && supportImpl != null ) {
-            ((JCRSupportImpl)supportImpl).checkoutIfNecessary(rsrc, changes, versioningConfiguration);
+            throws PersistenceException {
+        if (rsrc != null && supportImpl != null) {
+            ((JCRSupportImpl) supportImpl).checkoutIfNecessary(rsrc, changes, versioningConfiguration);
         }
     }
 
     public boolean isNode(final Resource rsrc) {
-        if ( rsrc != null && supportImpl != null ) {
-            return  ((JCRSupportImpl)supportImpl).isNode(rsrc);
+        if (rsrc != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isNode(rsrc);
         }
         return false;
     }
 
     public boolean isVersionable(final Resource rsrc) throws PersistenceException {
-        if ( supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isVersionable(rsrc);
+        if (supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isVersionable(rsrc);
         }
         return false;
     }
 
     public boolean isNodeType(final Resource rsrc, final String typeHint) {
-        if ( rsrc != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isNodeType(rsrc, typeHint);
+        if (rsrc != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isNodeType(rsrc, typeHint);
         }
         return false;
     }
 
     public Boolean isFileNodeType(final ResourceResolver resolver, final String nodeType) {
-        if ( supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isFileNodeType(resolver, nodeType);
+        if (supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isFileNodeType(resolver, nodeType);
         }
         return false;
     }
 
     public boolean isPropertyProtectedOrNewAutoCreated(final Object node, final String name)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isPropertyProtectedOrNewAutoCreated(node, name);
+            throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isPropertyProtectedOrNewAutoCreated(node, name);
         }
         return false;
     }
 
-    public boolean isPropertyMandatory(final Object node, final String name)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isPropertyMandatory(node, name);
+    public boolean isPropertyMandatory(final Object node, final String name) throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isPropertyMandatory(node, name);
         }
         return false;
     }
 
-    public boolean isPropertyMultiple(final Object node, final String name)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isPropertyMultiple(node, name);
+    public boolean isPropertyMultiple(final Object node, final String name) throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isPropertyMultiple(node, name);
         }
         return false;
     }
 
     public boolean isNewNode(final Object node) {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).isNewNode(node);
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).isNewNode(node);
         }
         return true;
     }
 
-    public Integer getPropertyType(final Object node, final String name)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).getPropertyType(node, name);
+    public Integer getPropertyType(final Object node, final String name) throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).getPropertyType(node, name);
         }
         return null;
     }
 
     public boolean hasSession(final ResourceResolver resolver) {
-        if ( supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).hasSession(resolver);
+        if (supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).hasSession(resolver);
         }
         return false;
     }
@@ -159,59 +157,57 @@ public class JCRSupport {
             final String[] values,
             final int type,
             final boolean multiValued)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).storeAsReference(node, name, values, type, multiValued);
-        }
-        throw new PersistenceException("Resource " + resource.getPath() + " does not support reference properties.", null, resource.getPath(), name);
-    }
-
-    public void setTypedProperty(final Object n,
-            final String name,
-            final String[] values,
-            final int type,
-            final boolean multiValued)
-    throws PersistenceException {
-        if ( n != null && supportImpl != null ) {
-            ((JCRSupportImpl)supportImpl).setTypedProperty(n, name, values, type, multiValued);
+            throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).storeAsReference(node, name, values, type, multiValued);
+        }
+        throw new PersistenceException(
+                "Resource " + resource.getPath() + " does not support reference properties.",
+                null,
+                resource.getPath(),
+                name);
+    }
+
+    public void setTypedProperty(
+            final Object n, final String name, final String[] values, final int type, final boolean multiValued)
+            throws PersistenceException {
+        if (n != null && supportImpl != null) {
+            ((JCRSupportImpl) supportImpl).setTypedProperty(n, name, values, type, multiValued);
         } else {
             throw new PersistenceException("Property should be stored through JCR but JCR support is not available");
         }
     }
 
     public Object getNode(final Resource rsrc) {
-        if ( supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).getNode(rsrc);
+        if (supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).getNode(rsrc);
         }
         return null;
     }
 
     public Object getItem(final Resource rsrc) {
-        if ( supportImpl != null ) {
-            return ((JCRSupportImpl)supportImpl).getItem(rsrc);
+        if (supportImpl != null) {
+            return ((JCRSupportImpl) supportImpl).getItem(rsrc);
         }
         return null;
     }
 
-    public void setPrimaryNodeType(final Object node, final String type)
-    throws PersistenceException {
-        if ( node != null && supportImpl != null ) {
-            ((JCRSupportImpl)supportImpl).setPrimaryNodeType(node, type);
+    public void setPrimaryNodeType(final Object node, final String type) throws PersistenceException {
+        if (node != null && supportImpl != null) {
+            ((JCRSupportImpl) supportImpl).setPrimaryNodeType(node, type);
         } else {
             throw new PersistenceException("Node type should be set but JCR support is not available");
         }
     }
 
-    public String copy(Object src, Object dstParent, String name)
-    throws PersistenceException {
+    public String copy(Object src, Object dstParent, String name) throws PersistenceException {
         // the caller already got an item and a node, so supportImpl is available
-        return ((JCRSupportImpl)supportImpl).copy(src, dstParent, name);
+        return ((JCRSupportImpl) supportImpl).copy(src, dstParent, name);
     }
 
-    public void move(Object src, Object dstParent, String name)
-    throws PersistenceException {
+    public void move(Object src, Object dstParent, String name) throws PersistenceException {
         // the caller already got an item and a node, so supportImpl is available
-        ((JCRSupportImpl)supportImpl).move(src, dstParent, name);
+        ((JCRSupportImpl) supportImpl).move(src, dstParent, name);
     }
 
     public boolean jcrEnabled() {
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupportImpl.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupportImpl.java
index 6cf7bff..593f317 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupportImpl.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupportImpl.java
@@ -18,8 +18,6 @@
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import java.util.List;
-
 import javax.jcr.AccessDeniedException;
 import javax.jcr.InvalidItemStateException;
 import javax.jcr.Item;
@@ -44,6 +42,8 @@ import javax.jcr.nodetype.NodeTypeManager;
 import javax.jcr.nodetype.PropertyDefinition;
 import javax.jcr.version.VersionException;
 
+import java.util.List;
+
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
@@ -63,13 +63,12 @@ public class JCRSupportImpl {
         try {
             final Node node = rsrc.adaptTo(Node.class);
             return node != null && isVersionable(node);
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re, rsrc.getPath(), null);
         }
     }
 
-    public boolean checkin(final Resource rsrc)
-    throws PersistenceException {
+    public boolean checkin(final Resource rsrc) throws PersistenceException {
         final Node node = rsrc.adaptTo(Node.class);
         if (node != null) {
             try {
@@ -79,9 +78,9 @@ public class JCRSupportImpl {
                 }
             } catch (final AccessDeniedException e) {
                 throw new PreconditionViolatedPersistenceException(e.getMessage(), e, rsrc.getPath(), null);
-            } catch (final UnsupportedRepositoryOperationException|InvalidItemStateException|LockException e) { 
+            } catch (final UnsupportedRepositoryOperationException | InvalidItemStateException | LockException e) {
                 throw new TemporaryPersistenceException(e.getMessage(), e, rsrc.getPath(), null);
-            } catch ( final RepositoryException re) {
+            } catch (final RepositoryException re) {
                 throw new PersistenceException(re.getMessage(), re, rsrc.getPath(), null);
             }
         }
@@ -95,31 +94,36 @@ public class JCRSupportImpl {
         try {
             node = node.getParent();
             return findVersionableAncestor(node);
-        } catch (ItemNotFoundException | AccessDeniedException e ) {
+        } catch (ItemNotFoundException | AccessDeniedException e) {
             // top-level or parent not accessible, stop looking for a versionable ancestor
             return null;
         }
     }
 
-    public void checkoutIfNecessary(final Resource resource,
+    public void checkoutIfNecessary(
+            final Resource resource,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
         if (resource != null && versioningConfiguration.isAutoCheckout()) {
             final Node node = resource.adaptTo(Node.class);
-            if ( node != null ) {
+            if (node != null) {
                 try {
                     Node versionableNode = findVersionableAncestor(node);
                     if (versionableNode != null) {
                         if (!versionableNode.isCheckedOut()) {
-                            versionableNode.getSession().getWorkspace().getVersionManager().checkout(versionableNode.getPath());
+                            versionableNode
+                                    .getSession()
+                                    .getWorkspace()
+                                    .getVersionManager()
+                                    .checkout(versionableNode.getPath());
                             changes.add(Modification.onCheckout(versionableNode.getPath()));
                         }
                     }
                 } catch (final AccessDeniedException e) {
-                    throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-                } catch (final UnsupportedRepositoryOperationException e) { 
-                    throw new TemporaryPersistenceException(e.getMessage(),e);
+                    throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+                } catch (final UnsupportedRepositoryOperationException e) {
+                    throw new TemporaryPersistenceException(e.getMessage(), e);
                 } catch (final RepositoryException re) {
                     throw new PersistenceException(re.getMessage(), re);
                 }
@@ -133,10 +137,10 @@ public class JCRSupportImpl {
 
     public boolean isNodeType(final Resource rsrc, final String typeHint) {
         final Node node = rsrc.adaptTo(Node.class);
-        if ( node != null ) {
+        if (node != null) {
             try {
                 return node.isNodeType(typeHint);
-            } catch ( final RepositoryException re) {
+            } catch (final RepositoryException re) {
                 // ignore
             }
         }
@@ -145,7 +149,7 @@ public class JCRSupportImpl {
 
     public Boolean isFileNodeType(final ResourceResolver resolver, final String nodeType) {
         final Session session = resolver.adaptTo(Session.class);
-        if ( session != null ) {
+        if (session != null) {
             try {
                 final NodeTypeManager ntMgr = session.getWorkspace().getNodeTypeManager();
                 final NodeType nt = ntMgr.getNodeType(nodeType);
@@ -159,9 +163,9 @@ public class JCRSupportImpl {
     }
 
     private PropertyDefinition searchPropertyDefinition(final NodeType nodeType, final String name) {
-        if ( nodeType.getPropertyDefinitions() != null ) {
-            for(final PropertyDefinition pd : nodeType.getPropertyDefinitions()) {
-                if ( pd.getName().equals(name) ) {
+        if (nodeType.getPropertyDefinitions() != null) {
+            for (final PropertyDefinition pd : nodeType.getPropertyDefinitions()) {
+                if (pd.getName().equals(name)) {
                     return pd;
                 }
             }
@@ -172,14 +176,13 @@ public class JCRSupportImpl {
         return null;
     }
 
-    private PropertyDefinition searchPropertyDefinition(final Node node, final String name)
-    throws RepositoryException {
+    private PropertyDefinition searchPropertyDefinition(final Node node, final String name) throws RepositoryException {
         PropertyDefinition result = searchPropertyDefinition(node.getPrimaryNodeType(), name);
-        if ( result == null ) {
-            if ( node.getMixinNodeTypes() != null ) {
-                for(final NodeType mt : node.getMixinNodeTypes()) {
+        if (result == null) {
+            if (node.getMixinNodeTypes() != null) {
+                for (final NodeType mt : node.getMixinNodeTypes()) {
                     result = this.searchPropertyDefinition(mt, name);
-                    if ( result != null ) {
+                    if (result != null) {
                         return result;
                     }
                 }
@@ -188,61 +191,57 @@ public class JCRSupportImpl {
         return result;
     }
 
-    public boolean isPropertyProtectedOrNewAutoCreated(final Object n, final String name)
-    throws PersistenceException {
-        final Node node = (Node)n;
+    public boolean isPropertyProtectedOrNewAutoCreated(final Object n, final String name) throws PersistenceException {
+        final Node node = (Node) n;
         try {
             final PropertyDefinition pd = this.searchPropertyDefinition(node, name);
-            if ( pd != null ) {
+            if (pd != null) {
                 // SLING-2877 (autocreated check is only required for new nodes)
-                if ( (node.isNew() && pd.isAutoCreated()) || pd.isProtected() ) {
+                if ((node.isNew() && pd.isAutoCreated()) || pd.isProtected()) {
                     return true;
                 }
             }
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
         return false;
     }
 
     public boolean isNewNode(final Object node) {
-        return ((Node)node).isNew();
+        return ((Node) node).isNew();
     }
 
-    public boolean isPropertyMandatory(final Object node, final String name)
-    throws PersistenceException {
+    public boolean isPropertyMandatory(final Object node, final String name) throws PersistenceException {
         try {
-            final Property prop = ((Node)node).getProperty(name);
+            final Property prop = ((Node) node).getProperty(name);
             return prop.getDefinition().isMandatory();
         } catch (final PathNotFoundException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch ( final RepositoryException re) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
 
-    public boolean isPropertyMultiple(final Object node, final String name)
-    throws PersistenceException {
+    public boolean isPropertyMultiple(final Object node, final String name) throws PersistenceException {
         try {
-            final Property prop = ((Node)node).getProperty(name);
+            final Property prop = ((Node) node).getProperty(name);
             return prop.getDefinition().isMultiple();
         } catch (final PathNotFoundException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch ( final RepositoryException re) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
 
-    public Integer getPropertyType(final Object node, final String name)
-    throws PersistenceException {
+    public Integer getPropertyType(final Object node, final String name) throws PersistenceException {
         try {
-            if ( ((Node)node).hasProperty(name) ) {
-                return ((Node)node).getProperty(name).getType();
+            if (((Node) node).hasProperty(name)) {
+                return ((Node) node).getProperty(name).getType();
             }
-        } catch (final NoSuchNodeTypeException|ConstraintViolationException|PathNotFoundException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+        } catch (final NoSuchNodeTypeException | ConstraintViolationException | PathNotFoundException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
@@ -257,34 +256,28 @@ public class JCRSupportImpl {
      * {@inheritDoc}
      */
     public Modification storeAsReference(
-            final Object n,
-            final String name,
-            final String[] values,
-            final int type,
-            final boolean multiValued)
-    throws PersistenceException {
+            final Object n, final String name, final String[] values, final int type, final boolean multiValued)
+            throws PersistenceException {
         try {
-            final Node node = (Node)n;
+            final Node node = (Node) n;
             if (multiValued) {
                 Value[] array = ReferenceParser.parse(node.getSession(), values, isWeakReference(type));
                 if (array != null) {
-                    return Modification.onModified(
-                            node.setProperty(name, array).getPath());
+                    return Modification.onModified(node.setProperty(name, array).getPath());
                 }
             } else {
                 if (values.length >= 1) {
                     Value v = ReferenceParser.parse(node.getSession(), values[0], isWeakReference(type));
                     if (v != null) {
-                        return Modification.onModified(
-                                node.setProperty(name, v).getPath());
+                        return Modification.onModified(node.setProperty(name, v).getPath());
                     }
                 }
             }
             return null;
-        } catch (final NoSuchNodeTypeException|ConstraintViolationException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+        } catch (final NoSuchNodeTypeException | ConstraintViolationException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
@@ -294,22 +287,19 @@ public class JCRSupportImpl {
         return resolver.adaptTo(Session.class) != null;
     }
 
-    public void setTypedProperty(final Object n,
-            final String name,
-            final String[] values,
-            final int type,
-            final boolean multiValued)
-    throws PersistenceException {
+    public void setTypedProperty(
+            final Object n, final String name, final String[] values, final int type, final boolean multiValued)
+            throws PersistenceException {
         try {
             if (multiValued) {
-                ((Node)n).setProperty(name, values, type);
+                ((Node) n).setProperty(name, values, type);
             } else if (values.length >= 1) {
-                ((Node)n).setProperty(name, values[0], type);
+                ((Node) n).setProperty(name, values[0], type);
             }
-        } catch (final ValueFormatException|ConstraintViolationException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+        } catch (final ValueFormatException | ConstraintViolationException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
@@ -323,31 +313,29 @@ public class JCRSupportImpl {
         return rsrc.adaptTo(Item.class);
     }
 
-    public void setPrimaryNodeType(final Object node, final String type)
-    throws PersistenceException {
+    public void setPrimaryNodeType(final Object node, final String type) throws PersistenceException {
         try {
-            ((Node)node).setPrimaryType(type);
-        } catch (final NoSuchNodeTypeException|ConstraintViolationException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+            ((Node) node).setPrimaryType(type);
+        } catch (final NoSuchNodeTypeException | ConstraintViolationException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
 
-    public void move(Object src, Object dstParent, String name)
-    throws PersistenceException {
+    public void move(Object src, Object dstParent, String name) throws PersistenceException {
         try {
-            final Session session = ((Item)src).getSession();
-            final Item source = ((Item)src);
-            final String targetParentPath = ((Node)dstParent).getPath();
+            final Session session = ((Item) src).getSession();
+            final Item source = ((Item) src);
+            final String targetParentPath = ((Node) dstParent).getPath();
             final String targetPath = (targetParentPath.equals("/") ? "" : targetParentPath) + '/' + name;
             session.move(source.getPath(), targetPath);
-        } catch (final PathNotFoundException|ConstraintViolationException|ItemExistsException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+        } catch (final PathNotFoundException | ConstraintViolationException | ItemExistsException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
@@ -370,20 +358,19 @@ public class JCRSupportImpl {
      * @see #copy(Node, Node, String)
      * @see #copy(Property, Node, String)
      */
-    public String copy(Object src, Object dstParent, String name)
-    throws PersistenceException {
+    public String copy(Object src, Object dstParent, String name) throws PersistenceException {
         try {
             final Item result;
-            if (((Item)src).isNode()) {
-                result = copy((Node) src, (Node)dstParent, name);
+            if (((Item) src).isNode()) {
+                result = copy((Node) src, (Node) dstParent, name);
             } else {
-                result = copy((Property) src, (Node)dstParent, name);
+                result = copy((Property) src, (Node) dstParent, name);
             }
             return result.getPath();
-        } catch (final NoSuchNodeTypeException|ConstraintViolationException e) {
-            throw new PreconditionViolatedPersistenceException(e.getMessage(),e);
-        } catch (final VersionException|LockException e) { 
-            throw new TemporaryPersistenceException(e.getMessage(),e);
+        } catch (final NoSuchNodeTypeException | ConstraintViolationException e) {
+            throw new PreconditionViolatedPersistenceException(e.getMessage(), e);
+        } catch (final VersionException | LockException e) {
+            throw new TemporaryPersistenceException(e.getMessage(), e);
         } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
@@ -406,10 +393,9 @@ public class JCRSupportImpl {
      * @throws RepositoryException May be thrown in case of any problem copying
      *             the content.
      */
-    private Item copy(Node src, Node dstParent, String name)
-            throws RepositoryException {
+    private Item copy(Node src, Node dstParent, String name) throws RepositoryException {
 
-        if(isAncestorOrSameNode(src, dstParent)) {
+        if (isAncestorOrSameNode(src, dstParent)) {
             throw new RepositoryException(
                     "Cannot copy ancestor " + src.getPath() + " to descendant " + dstParent.getPath());
         }
@@ -431,12 +417,12 @@ public class JCRSupportImpl {
         }
 
         // copy the properties
-        for (PropertyIterator iter = src.getProperties(); iter.hasNext();) {
+        for (PropertyIterator iter = src.getProperties(); iter.hasNext(); ) {
             copy(iter.nextProperty(), dst, null);
         }
 
         // copy the child nodes
-        for (NodeIterator iter = src.getNodes(); iter.hasNext();) {
+        for (NodeIterator iter = src.getNodes(); iter.hasNext(); ) {
             Node n = iter.nextNode();
             if (!n.getDefinition().isProtected()) {
                 copy(n, dst, null);
@@ -445,20 +431,20 @@ public class JCRSupportImpl {
         return dst;
     }
 
-    /** 
+    /**
      * determines if the 2 nodes are in ancestor relationship or identical
      * @param src one node
      * @param dest the other node
      * @return true if src is an ancestor node of dest, or if
-     *      both are the same node 
+     *      both are the same node
      * @throws RepositoryException if something goes wrong
      **/
     public static boolean isAncestorOrSameNode(Node src, Node dest) throws RepositoryException {
-        if(src.getPath().equals("/")) {
+        if (src.getPath().equals("/")) {
             return true;
-        } else if(src.getPath().equals(dest.getPath())) {
+        } else if (src.getPath().equals(dest.getPath())) {
             return true;
-        } else if(dest.getPath().startsWith(src.getPath() + "/")) {
+        } else if (dest.getPath().startsWith(src.getPath() + "/")) {
             return true;
         }
         return false;
@@ -479,8 +465,7 @@ public class JCRSupportImpl {
      * @throws RepositoryException May be thrown in case of any problem copying
      *             the content.
      */
-    private Item copy(Property src, Node dstParent, String name)
-            throws RepositoryException {
+    private Item copy(Property src, Node dstParent, String name) throws RepositoryException {
         if (!src.getDefinition().isProtected()) {
             if (name == null) {
                 name = src.getName();
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/NodeNameFilter.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/NodeNameFilter.java
index 15d6184..c66cdf4 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/NodeNameFilter.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/NodeNameFilter.java
@@ -1,22 +1,23 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-
 /**
  * Filter a String so that it can be used as a NodeName.
  */
@@ -26,11 +27,11 @@ public class NodeNameFilter {
     public static final char REPLACEMENT_CHAR = '_';
 
     public String filter(String nodeName) {
-        final StringBuilder sb  = new StringBuilder();
+        final StringBuilder sb = new StringBuilder();
         char lastAdded = 0;
 
         nodeName = nodeName.toLowerCase();
-        for(int i=0; i < nodeName.length(); i++) {
+        for (int i = 0; i < nodeName.length(); i++) {
             final char c = nodeName.charAt(i);
             char toAdd = c;
 
@@ -41,7 +42,7 @@ public class NodeNameFilter {
                 }
                 toAdd = REPLACEMENT_CHAR;
 
-            } else if(i == 0 && Character.isDigit(c)) {
+            } else if (i == 0 && Character.isDigit(c)) {
                 sb.append(REPLACEMENT_CHAR);
             }
 
@@ -49,7 +50,7 @@ public class NodeNameFilter {
             lastAdded = toAdd;
         }
 
-        if (sb.length()==0) {
+        if (sb.length() == 0) {
             sb.append(REPLACEMENT_CHAR);
         }
 
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/ReferenceParser.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/ReferenceParser.java
index 635db53..9b68b02 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/ReferenceParser.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/ReferenceParser.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -59,7 +61,7 @@ public class ReferenceParser {
      */
     public static Value[] parse(Session session, String[] values, boolean weak) throws RepositoryException {
         Value ret[] = new Value[values.length];
-        for (int i=0; i< values.length; i++) {
+        for (int i = 0; i < values.length; i++) {
             Node n = parse(session, values[i]);
             if (n == null) {
                 return null;
@@ -69,7 +71,8 @@ public class ReferenceParser {
         return ret;
     }
 
-    private static Value createReferenceValue(Node node, ValueFactory factory, boolean weak) throws RepositoryException {
+    private static Value createReferenceValue(Node node, ValueFactory factory, boolean weak)
+            throws RepositoryException {
         if (weak) {
             return factory.createValue(node, true);
         } else {
@@ -92,5 +95,4 @@ public class ReferenceParser {
         }
         return null;
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/RequestProperty.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/RequestProperty.java
index 4aaccf9..722e4de 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/RequestProperty.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/RequestProperty.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -31,11 +33,9 @@ public class RequestProperty {
 
     private static final RequestParameter[] EMPTY_PARAM_ARRAY = new RequestParameter[0];
 
-    public static final String DEFAULT_IGNORE = SlingPostConstants.RP_PREFIX
-        + "ignore";
+    public static final String DEFAULT_IGNORE = SlingPostConstants.RP_PREFIX + "ignore";
 
-    public static final String DEFAULT_NULL = SlingPostConstants.RP_PREFIX
-        + "null";
+    public static final String DEFAULT_NULL = SlingPostConstants.RP_PREFIX + "null";
 
     private final String path;
 
@@ -83,7 +83,7 @@ public class RequestProperty {
     }
 
     public void setTypeHintValue(String typeHint) {
-        if ( typeHint != null && typeHint.endsWith("[]") ) {
+        if (typeHint != null && typeHint.endsWith("[]")) {
             this.typeHint = typeHint.substring(0, typeHint.length() - 2);
             this.hasMultiValueTypeHint = true;
         } else {
@@ -172,7 +172,7 @@ public class RequestProperty {
     public String[] getStringValues() {
         if (stringValues == null) {
             if (values == null && useDefaultWhenMissing) {
-                stringValues = new String[] { defaultValues[0].getString() };
+                stringValues = new String[] {defaultValues[0].getString()};
             } else if (values.length > 1) {
                 // TODO: how the default values work for MV props is not very
                 // clear
@@ -203,7 +203,7 @@ public class RequestProperty {
                         }
                     }
                 }
-                stringValues = new String[] { value };
+                stringValues = new String[] {value};
             }
         }
         return stringValues;
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStream.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStream.java
index 3e6603e..cd94eca 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStream.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStream.java
@@ -1,30 +1,31 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.helper;
 
-import org.apache.sling.api.resource.Resource;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.Iterator;
 
+import org.apache.sling.api.resource.Resource;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 /**
  * An input stream that reads from a list of resources that can be adapted into input streams.
  */
@@ -37,23 +38,24 @@ public class ResourceIteratorInputStream extends InputStream {
 
     public ResourceIteratorInputStream(Iterator<Resource> iterator) {
         this.iterator = iterator;
-        while(iterator.hasNext()) {
+        while (iterator.hasNext()) {
             currentStream = iterator.next().adaptTo(InputStream.class);
-            if ( currentStream != null) {
+            if (currentStream != null) {
                 n = 0;
                 streamNo = 1;
                 return;
             }
         }
-        throw new IllegalArgumentException("Resource iterator does not contain any resources that can be adapted to an input stream.");
+        throw new IllegalArgumentException(
+                "Resource iterator does not contain any resources that can be adapted to an input stream.");
     }
 
     @Override
     public int read() throws IOException {
         int i = currentStream.read();
-        while ( i == -1 ) {
-            if ( iterator.hasNext()) {
-                LOGGER.debug("Stream {} provided {} bytes. ",streamNo, n);
+        while (i == -1) {
+            if (iterator.hasNext()) {
+                LOGGER.debug("Stream {} provided {} bytes. ", streamNo, n);
                 currentStream = iterator.next().adaptTo(InputStream.class);
                 streamNo++;
                 n = 0;
@@ -61,7 +63,7 @@ public class ResourceIteratorInputStream extends InputStream {
                     i = currentStream.read();
                 }
             } else {
-                LOGGER.debug("Last Stream {} provided {} bytes. ",streamNo, n);
+                LOGGER.debug("Last Stream {} provided {} bytes. ", streamNo, n);
                 return -1;
             }
         }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingFileUploadHandler.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingFileUploadHandler.java
index 1ae1c6c..a16a32b 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingFileUploadHandler.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingFileUploadHandler.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
@@ -36,7 +38,6 @@ import java.util.Map;
 import java.util.Set;
 
 import jakarta.servlet.ServletContext;
-
 import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.jackrabbit.util.Text;
@@ -115,20 +116,23 @@ public class SlingFileUploadHandler {
      * @param prop the assembled property info
      * @throws PersistenceException if an error occurs
      */
-    private void setFile(final Resource parentResource,
+    private void setFile(
+            final Resource parentResource,
             final RequestProperty prop,
             final RequestParameter value,
-            final List<Modification> changes, String name,
+            final List<Modification> changes,
+            String name,
             final String contentType)
-    throws PersistenceException {
+            throws PersistenceException {
         // check type hint. if the type is ok and extends from nt:file,
         // create an nt:file with that type. if it's invalid, drop it and let
         // the parent node type decide.
-        boolean createNtFile = parentResource.isResourceType(JcrConstants.NT_FOLDER) || this.jcrSupport.isNodeType(parentResource, JcrConstants.NT_FOLDER);
+        boolean createNtFile = parentResource.isResourceType(JcrConstants.NT_FOLDER)
+                || this.jcrSupport.isNodeType(parentResource, JcrConstants.NT_FOLDER);
         String typeHint = prop.getTypeHint();
         if (typeHint != null) {
             Boolean isFileNodeType = this.jcrSupport.isFileNodeType(parentResource.getResourceResolver(), typeHint);
-            if ( isFileNodeType == null ) {
+            if (isFileNodeType == null) {
                 // assuming type not valid.
                 createNtFile = false;
                 typeHint = null;
@@ -189,12 +193,13 @@ public class SlingFileUploadHandler {
      * merge all previous chunks and last chunk and replace binary at
      * destination.
      */
-    private void processChunk(final Resource resParent,
+    private void processChunk(
+            final Resource resParent,
             final Resource res,
             final RequestProperty prop,
             final RequestParameter value,
             final List<Modification> changes)
-    throws PersistenceException {
+            throws PersistenceException {
         try {
             final ModifiableValueMap mvm = res.adaptTo(ModifiableValueMap.class);
             long chunkOffset = prop.getChunk().getOffset();
@@ -202,58 +207,51 @@ public class SlingFileUploadHandler {
                 // first chunk
                 // check if another chunk upload is already in progress. throw
                 // exception
-                final Iterator<Resource> itr = new FilteringResourceIterator(res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME);
+                final Iterator<Resource> itr =
+                        new FilteringResourceIterator(res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME);
                 if (itr.hasNext()) {
-                    throw new PersistenceException(
-                        "Chunk upload already in progress at {" + res.getPath()
-                            + "}");
+                    throw new PersistenceException("Chunk upload already in progress at {" + res.getPath() + "}");
                 }
                 addChunkMixin(mvm);
                 mvm.put(SlingPostConstants.NT_SLING_CHUNKS_LENGTH, 0);
                 changes.add(Modification.onModified(res.getPath() + "/" + SlingPostConstants.NT_SLING_CHUNKS_LENGTH));
-                if (mvm.get(JcrConstants.JCR_DATA) == null ) {
+                if (mvm.get(JcrConstants.JCR_DATA) == null) {
                     // create a empty jcr:data property
-                    mvm.put(JcrConstants.JCR_DATA,
-                        new ByteArrayInputStream("".getBytes()));
+                    mvm.put(JcrConstants.JCR_DATA, new ByteArrayInputStream("".getBytes()));
                 }
             }
             if (mvm.get(SlingPostConstants.NT_SLING_CHUNKS_LENGTH) == null) {
-                throw new PersistenceException("no chunk upload found at {"
-                    + res.getPath() + "}");
+                throw new PersistenceException("no chunk upload found at {" + res.getPath() + "}");
             }
             long currentLength = mvm.get(SlingPostConstants.NT_SLING_CHUNKS_LENGTH, Long.class);
             long totalLength = prop.getChunk().getLength();
             if (chunkOffset != currentLength) {
-                throw new PersistenceException("Chunk's offset {"
-                    + chunkOffset
-                    + "} doesn't match expected offset {"
-                    + currentLength
-                    + "}");
+                throw new PersistenceException(
+                        "Chunk's offset {" + chunkOffset + "} doesn't match expected offset {" + currentLength + "}");
             }
             if (totalLength != 0) {
-                if (mvm.get(SlingPostConstants.NT_SLING_FILE_LENGTH) != null ) {
-                    long expectedLength = mvm.get(
-                        SlingPostConstants.NT_SLING_FILE_LENGTH, Long.class);
+                if (mvm.get(SlingPostConstants.NT_SLING_FILE_LENGTH) != null) {
+                    long expectedLength = mvm.get(SlingPostConstants.NT_SLING_FILE_LENGTH, Long.class);
                     if (totalLength != expectedLength) {
                         throw new PersistenceException("File length {"
-                            + totalLength + "} doesn't match expected length {"
-                            + expectedLength + "}");
+                                + totalLength + "} doesn't match expected length {"
+                                + expectedLength + "}");
                     }
                 } else {
-                    mvm.put(SlingPostConstants.NT_SLING_FILE_LENGTH,
-                        totalLength);
+                    mvm.put(SlingPostConstants.NT_SLING_FILE_LENGTH, totalLength);
                 }
             }
-            final Iterator<Resource> itr = new FilteringResourceIterator(res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME + "_" + String.valueOf(chunkOffset));
+            final Iterator<Resource> itr = new FilteringResourceIterator(
+                    res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME + "_" + String.valueOf(chunkOffset));
             if (itr.hasNext()) {
-                throw new PersistenceException("Chunk already present at {"
-                    + itr.next().getPath() + "}");
+                throw new PersistenceException(
+                        "Chunk already present at {" + itr.next().getPath() + "}");
             }
             String nodeName = SlingPostConstants.CHUNK_NODE_NAME + "_"
-                + String.valueOf(chunkOffset) + "_"
-                + String.valueOf(chunkOffset + value.getSize() - 1);
+                    + String.valueOf(chunkOffset) + "_"
+                    + String.valueOf(chunkOffset + value.getSize() - 1);
             if (totalLength == (currentLength + value.getSize())
-                || prop.getChunk().isCompleted()) {
+                    || prop.getChunk().isCompleted()) {
                 File file = null;
                 InputStream fileIns = null;
                 try {
@@ -261,18 +259,21 @@ public class SlingFileUploadHandler {
                     fileIns = new FileInputStream(file);
                     mvm.put(JcrConstants.JCR_DATA, fileIns);
                     changes.add(Modification.onModified(res.getPath() + "/" + JcrConstants.JCR_DATA));
-                    final Iterator<Resource> rsrcItr = new FilteringResourceIterator(res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME);
+                    final Iterator<Resource> rsrcItr =
+                            new FilteringResourceIterator(res.listChildren(), SlingPostConstants.CHUNK_NODE_NAME);
                     while (rsrcItr.hasNext()) {
                         Resource rsrcRange = rsrcItr.next();
                         changes.add(Modification.onDeleted(rsrcRange.getPath()));
                         rsrcRange.getResourceResolver().delete(rsrcRange);
                     }
                     if (mvm.get(SlingPostConstants.NT_SLING_FILE_LENGTH) != null) {
-                        changes.add(Modification.onDeleted(res.getPath() + "/" + SlingPostConstants.NT_SLING_FILE_LENGTH));
+                        changes.add(
+                                Modification.onDeleted(res.getPath() + "/" + SlingPostConstants.NT_SLING_FILE_LENGTH));
                         mvm.remove(SlingPostConstants.NT_SLING_FILE_LENGTH);
                     }
                     if (mvm.get(SlingPostConstants.NT_SLING_CHUNKS_LENGTH) != null) {
-                        changes.add(Modification.onDeleted(res.getPath() + "/" + SlingPostConstants.NT_SLING_CHUNKS_LENGTH));
+                        changes.add(Modification.onDeleted(
+                                res.getPath() + "/" + SlingPostConstants.NT_SLING_CHUNKS_LENGTH));
                         mvm.remove(SlingPostConstants.NT_SLING_CHUNKS_LENGTH);
                     }
                     removeChunkMixin(mvm);
@@ -283,25 +284,22 @@ public class SlingFileUploadHandler {
                     } catch (IOException ign) {
 
                     }
-
                 }
             } else {
-                final Map<String,Object> props = new HashMap<>();
+                final Map<String, Object> props = new HashMap<>();
                 props.put(JcrConstants.JCR_DATA, value.getInputStream());
                 props.put(SlingPostConstants.NT_SLING_CHUNK_OFFSET, chunkOffset);
                 props.put(SlingPostConstants.NT_SLING_CHUNKS_LENGTH, currentLength + value.getSize());
-                for(final String key : props.keySet()) {
+                for (final String key : props.keySet()) {
                     changes.add(Modification.onModified(res.getPath() + "/" + nodeName + "/" + key));
                 }
-                props.put(ResourceResolver.PROPERTY_RESOURCE_TYPE,
-                        SlingPostConstants.NT_SLING_CHUNK_NODETYPE);
+                props.put(ResourceResolver.PROPERTY_RESOURCE_TYPE, SlingPostConstants.NT_SLING_CHUNK_NODETYPE);
                 final Resource rangeRsrc = res.getResourceResolver().create(res, nodeName, props);
 
                 changes.add(Modification.onCreated(rangeRsrc.getPath()));
             }
         } catch (IOException e) {
-            throw new PersistenceException(
-                "Error while retrieving inputstream from parameter value.", e);
+            throw new PersistenceException("Error while retrieving inputstream from parameter value.", e);
         }
     }
 
@@ -321,9 +319,9 @@ public class SlingFileUploadHandler {
 
         private Resource seek() {
             Resource result = null;
-            while ( iter.hasNext() && result == null ) {
+            while (iter.hasNext() && result == null) {
                 final Resource c = iter.next();
-                if ( c.getName().startsWith(prefix) ) {
+                if (c.getName().startsWith(prefix)) {
                     result = c;
                 }
             }
@@ -345,7 +343,6 @@ public class SlingFileUploadHandler {
         @Override
         public void remove() {
             throw new UnsupportedOperationException();
-
         }
 
         @Override
@@ -358,11 +355,10 @@ public class SlingFileUploadHandler {
      * Merge all previous chunks with last chunk's stream into a temporary file
      * and return it.
      */
-    private File mergeChunks(final Resource parentResource,
-            final InputStream lastChunkStream)
-    throws PersistenceException {
+    private File mergeChunks(final Resource parentResource, final InputStream lastChunkStream)
+            throws PersistenceException {
         OutputStream out = null;
-        SequenceInputStream  mergeStrm = null;
+        SequenceInputStream mergeStrm = null;
         File file = null;
         try {
             file = File.createTempFile("tmp-", "-mergechunk");
@@ -372,18 +368,18 @@ public class SlingFileUploadHandler {
             final Set<InputStream> inpStrmSet = new LinkedHashSet<>();
             while (itr.hasNext()) {
                 final Resource rangeResource = itr.next();
-                if (itr.hasNext() ) {
-                    throw new PersistenceException(
-                        "more than one resource found for pattern: " + startPattern + "*");
+                if (itr.hasNext()) {
+                    throw new PersistenceException("more than one resource found for pattern: " + startPattern + "*");
                 }
 
                 inpStrmSet.add(rangeResource.adaptTo(InputStream.class));
                 log.debug("added chunk {} to merge stream", rangeResource.getName());
-                String[] indexBounds = rangeResource.getName().substring(
-                    (SlingPostConstants.CHUNK_NODE_NAME + "_").length()).split(
-                    "_");
+                String[] indexBounds = rangeResource
+                        .getName()
+                        .substring((SlingPostConstants.CHUNK_NODE_NAME + "_").length())
+                        .split("_");
                 startPattern = SlingPostConstants.CHUNK_NODE_NAME + "_"
-                    + String.valueOf(Long.valueOf(indexBounds[1]) + 1) + "_";
+                        + String.valueOf(Long.valueOf(indexBounds[1]) + 1) + "_";
                 itr = new FilteringResourceIterator(parentResource.listChildren(), startPattern);
             }
 
@@ -395,7 +391,6 @@ public class SlingFileUploadHandler {
         } finally {
             IOUtils.closeQuietly(out);
             IOUtils.closeQuietly(mergeStrm);
-
         }
         return file;
     }
@@ -409,7 +404,7 @@ public class SlingFileUploadHandler {
             chunkParent = rsrc;
         } else {
             jcrContentNode = rsrc.getChild(JcrConstants.JCR_CONTENT);
-            if ( hasChunks(jcrContentNode)) {
+            if (hasChunks(jcrContentNode)) {
                 chunkParent = jcrContentNode;
             }
         }
@@ -425,7 +420,8 @@ public class SlingFileUploadHandler {
         final Resource chunkParent = getChunkParent(rsrc);
 
         if (chunkParent != null) {
-            for(final Resource c : new FilteringResourceIterator(rsrc.listChildren(), SlingPostConstants.CHUNK_NODE_NAME) ) {
+            for (final Resource c :
+                    new FilteringResourceIterator(rsrc.listChildren(), SlingPostConstants.CHUNK_NODE_NAME)) {
                 c.getResourceResolver().delete(c);
             }
             final ModifiableValueMap vm = chunkParent.adaptTo(ModifiableValueMap.class);
@@ -437,11 +433,11 @@ public class SlingFileUploadHandler {
 
     private final void addChunkMixin(final ModifiableValueMap vm) {
         final String[] mixins = vm.get(JcrConstants.JCR_MIXINTYPES, String[].class);
-        if ( mixins == null ) {
+        if (mixins == null) {
             vm.put(JcrConstants.JCR_MIXINTYPES, new String[] {SlingPostConstants.NT_SLING_CHUNK_MIXIN});
         } else {
             final Set<String> types = new HashSet<>(Arrays.asList(mixins));
-            if ( !types.contains(SlingPostConstants.NT_SLING_CHUNK_MIXIN) ) {
+            if (!types.contains(SlingPostConstants.NT_SLING_CHUNK_MIXIN)) {
                 types.add(SlingPostConstants.NT_SLING_CHUNK_MIXIN);
                 vm.put(JcrConstants.JCR_MIXINTYPES, types.toArray(new String[types.size()]));
             }
@@ -450,9 +446,9 @@ public class SlingFileUploadHandler {
 
     private final void removeChunkMixin(final ModifiableValueMap vm) {
         final String[] mixins = vm.get(JcrConstants.JCR_MIXINTYPES, String[].class);
-        if ( mixins != null ) {
+        if (mixins != null) {
             final Set<String> types = new HashSet<>(Arrays.asList(mixins));
-            if ( types.remove(SlingPostConstants.NT_SLING_CHUNK_MIXIN) ) {
+            if (types.remove(SlingPostConstants.NT_SLING_CHUNK_MIXIN)) {
                 vm.put(JcrConstants.JCR_MIXINTYPES, types.toArray(new String[types.size()]));
             }
         }
@@ -468,16 +464,19 @@ public class SlingFileUploadHandler {
      * @return the {@link SlingPostConstants#NT_SLING_CHUNK_NODETYPE} chunk
      *         resource.
      */
-    public Resource getLastChunk(Resource rsrc)  {
+    public Resource getLastChunk(Resource rsrc) {
         final Resource chunkParent = getChunkParent(rsrc);
         if (chunkParent == null) {
             return null;
         }
         Resource lastChunkRsrc = null;
         long lastChunkStartIndex = -1;
-        for(final Resource chunkRsrc : new FilteringResourceIterator(rsrc.listChildren(), SlingPostConstants.CHUNK_NODE_NAME + "_") ) {
-            final String[] indexBounds = chunkRsrc.getName().substring(
-                     (SlingPostConstants.CHUNK_NODE_NAME + "_").length()).split("_");
+        for (final Resource chunkRsrc :
+                new FilteringResourceIterator(rsrc.listChildren(), SlingPostConstants.CHUNK_NODE_NAME + "_")) {
+            final String[] indexBounds = chunkRsrc
+                    .getName()
+                    .substring((SlingPostConstants.CHUNK_NODE_NAME + "_").length())
+                    .split("_");
             long chunkStartIndex = Long.valueOf(indexBounds[0]);
             if (chunkStartIndex > lastChunkStartIndex) {
                 lastChunkRsrc = chunkRsrc;
@@ -494,7 +493,7 @@ public class SlingFileUploadHandler {
     private boolean hasChunks(final Resource rsrc) {
         final ValueMap vm = rsrc.getValueMap();
         final String[] mixinTypes = vm.get(JcrConstants.JCR_MIXINTYPES, String[].class);
-        if ( mixinTypes != null ) {
+        if (mixinTypes != null) {
             for (final String nodeType : mixinTypes) {
                 if (nodeType.equals(SlingPostConstants.NT_SLING_CHUNK_MIXIN)) {
                     return true;
@@ -518,7 +517,7 @@ public class SlingFileUploadHandler {
      * @throws PersistenceException if an error occurs
      */
     public void setFile(final Resource parent, final RequestProperty prop, final List<Modification> changes)
-    throws PersistenceException {
+            throws PersistenceException {
         for (final RequestParameter value : prop.getValues()) {
 
             // ignore if a plain form field or empty
@@ -550,7 +549,7 @@ public class SlingFileUploadHandler {
                 if (ctx != null) {
                     contentType = ctx.getMimeType(value.getFileName());
                 }
-                if ( contentType == null ) {
+                if (contentType == null) {
                     contentType = MT_APP_OCTET;
                 }
             }
@@ -559,14 +558,14 @@ public class SlingFileUploadHandler {
         }
     }
 
-    private Resource getOrCreateChildResource(final Resource parent,
-            final String name,
-            final String typeHint,
-            final List<Modification> changes)
-    throws PersistenceException {
+    private Resource getOrCreateChildResource(
+            final Resource parent, final String name, final String typeHint, final List<Modification> changes)
+            throws PersistenceException {
         Resource result = parent.getChild(name);
-        if ( result != null ) {
-            if ( !result.isResourceType(typeHint) && jcrSupport.isNode(result) && !jcrSupport.isNodeType(result, typeHint) ) {
+        if (result != null) {
+            if (!result.isResourceType(typeHint)
+                    && jcrSupport.isNode(result)
+                    && !jcrSupport.isNodeType(result, typeHint)) {
                 parent.getResourceResolver().delete(result);
                 result = createWithChanges(parent, name, typeHint, changes);
             }
@@ -576,23 +575,21 @@ public class SlingFileUploadHandler {
         return result;
     }
 
-    private Resource createWithChanges(final Resource parent, final String name,
-            final String typeHint,
-            final List<Modification> changes)
-    throws PersistenceException {
+    private Resource createWithChanges(
+            final Resource parent, final String name, final String typeHint, final List<Modification> changes)
+            throws PersistenceException {
         Map<String, Object> properties = null;
-        if ( typeHint != null ) {
+        if (typeHint != null) {
             // sling resource type not allowed for nt:file nor nt:resource
-            if ( !jcrSupport.isNode(parent)
-                 || (!JcrConstants.NT_FILE.equals(typeHint) && !JcrConstants.NT_RESOURCE.equals(typeHint)) ) {
-                properties = Collections.singletonMap(ResourceResolver.PROPERTY_RESOURCE_TYPE, (Object)typeHint);
+            if (!jcrSupport.isNode(parent)
+                    || (!JcrConstants.NT_FILE.equals(typeHint) && !JcrConstants.NT_RESOURCE.equals(typeHint))) {
+                properties = Collections.singletonMap(ResourceResolver.PROPERTY_RESOURCE_TYPE, (Object) typeHint);
             } else {
-                properties = Collections.singletonMap(JcrConstants.JCR_PRIMARYTYPE, (Object)typeHint);
+                properties = Collections.singletonMap(JcrConstants.JCR_PRIMARYTYPE, (Object) typeHint);
             }
         }
         final Resource result = parent.getResourceResolver().create(parent, name, properties);
         changes.add(Modification.onCreated(result.getPath()));
         return result;
     }
-
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java
index 0ac27d9..f23b122 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java
@@ -1,22 +1,25 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.helper;
 
+import javax.jcr.PropertyType;
+
 import java.math.BigDecimal;
 import java.util.ArrayList;
 import java.util.Calendar;
@@ -24,8 +27,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import javax.jcr.PropertyType;
-
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.sling.api.resource.ModifiableValueMap;
 import org.apache.sling.api.resource.PersistenceException;
@@ -46,6 +47,7 @@ public class SlingPropertyValueHandler {
      * Defines a map of auto properties
      */
     private static final Map<String, AutoType> AUTO_PROPS = new HashMap<>();
+
     static {
         AUTO_PROPS.put("created", AutoType.CREATED);
         AUTO_PROPS.put("createdBy", AutoType.CREATED_BY);
@@ -75,11 +77,10 @@ public class SlingPropertyValueHandler {
      * Constructs a property value handler
      * @param dateParser the dateParser
      * @param jcrSupport the jcrSupport
-     * @param changes the changes 
+     * @param changes the changes
      */
-    public SlingPropertyValueHandler(final DateParser dateParser,
-            final JCRSupport jcrSupport,
-            final List<Modification> changes) {
+    public SlingPropertyValueHandler(
+            final DateParser dateParser, final JCRSupport jcrSupport, final List<Modification> changes) {
         this.dateParser = dateParser;
         this.jcrSupport = jcrSupport;
         this.changes = changes;
@@ -108,14 +109,14 @@ public class SlingPropertyValueHandler {
      * @param prop the request property
      * @throws PersistenceException if a resource error occurs
      */
-    public void setProperty(final Resource parent, final RequestProperty prop)
-    throws PersistenceException {
+    public void setProperty(final Resource parent, final RequestProperty prop) throws PersistenceException {
         final Modifiable mod = new Modifiable();
         mod.resource = parent;
         mod.node = jcrSupport.getNode(parent);
         mod.valueMap = parent.adaptTo(ModifiableValueMap.class);
-        if ( mod.valueMap == null ) {
-            throw new PreconditionViolatedPersistenceException("Resource at '" + parent.getPath() + "' is not modifiable.");
+        if (mod.valueMap == null) {
+            throw new PreconditionViolatedPersistenceException(
+                    "Resource at '" + parent.getPath() + "' is not modifiable.");
         }
 
         final String name = prop.getName();
@@ -125,7 +126,7 @@ public class SlingPropertyValueHandler {
 
         } else if (AUTO_PROPS.containsKey(name)) {
             // check if this is a JCR resource and check node type
-            if ( this.jcrSupport.isPropertyProtectedOrNewAutoCreated(mod.node, name) ) {
+            if (this.jcrSupport.isPropertyProtectedOrNewAutoCreated(mod.node, name)) {
                 return;
             }
 
@@ -161,8 +162,7 @@ public class SlingPropertyValueHandler {
      * @param name name of the property
      * @throws PersistenceException if a resource error occurs
      */
-    private void setCurrentDate(final Modifiable parent, final String name)
-    throws PersistenceException {
+    private void setCurrentDate(final Modifiable parent, final String name) throws PersistenceException {
         removePropertyIfExists(parent, name);
         parent.valueMap.put(name, now);
         changes.add(Modification.onModified(parent.resource.getPath() + '/' + name));
@@ -174,8 +174,7 @@ public class SlingPropertyValueHandler {
      * @param name name of the property
      * @throws PersistenceException if a resource error occurs
      */
-    private void setCurrentUser(final Modifiable parent, final String name)
-    throws PersistenceException {
+    private void setCurrentUser(final Modifiable parent, final String name) throws PersistenceException {
         removePropertyIfExists(parent, name);
         final String user = parent.resource.getResourceResolver().getUserID();
         parent.valueMap.put(name, user);
@@ -192,8 +191,7 @@ public class SlingPropertyValueHandler {
      *         it was not removed
      * @throws PersistenceException if a repository error occurs.
      */
-    private String removePropertyIfExists(final Modifiable parent, final String name)
-    throws PersistenceException {
+    private String removePropertyIfExists(final Modifiable parent, final String name) throws PersistenceException {
         if (parent.valueMap.containsKey(name) && !jcrSupport.isPropertyMandatory(parent.node, name)) {
             parent.valueMap.remove(name);
             return parent.resource.getPath() + '/' + name;
@@ -208,8 +206,7 @@ public class SlingPropertyValueHandler {
      * @param prop the request property
      * @throws PersistenceException if a resource error occurs.
      */
-    private void setPropertyAsIs(final Modifiable parent, final RequestProperty prop)
-    throws PersistenceException {
+    private void setPropertyAsIs(final Modifiable parent, final RequestProperty prop) throws PersistenceException {
 
         String[] values = prop.getStringValues();
 
@@ -261,8 +258,7 @@ public class SlingPropertyValueHandler {
     /**
      * Patches a multi-value property using add and remove operations per value.
      */
-    private String[] patch(final Modifiable parent, String name, String[] values)
-    throws PersistenceException {
+    private String[] patch(final Modifiable parent, String name, String[] values) throws PersistenceException {
         // we do not use a Set here, as we want to be very restrictive in our
         // actions and avoid touching elements that are not modified through the
         // add/remove patch operations; e.g. if the value "foo" occurs twice
@@ -271,15 +267,15 @@ public class SlingPropertyValueHandler {
         List<String> oldValues = new ArrayList<>();
 
         if (parent.valueMap.containsKey(name)) {
-            if ( parent.node != null && !jcrSupport.isPropertyMultiple(parent.node, name)) {
+            if (parent.node != null && !jcrSupport.isPropertyMultiple(parent.node, name)) {
 
                 // can only patch multi-value props
                 return null;
             }
 
             final String[] setValues = parent.valueMap.get(name, String[].class);
-            if ( setValues != null ) {
-                for(final String v : setValues) {
+            if (setValues != null) {
+                for (final String v : setValues) {
                     oldValues.add(v);
                 }
             }
@@ -313,7 +309,6 @@ public class SlingPropertyValueHandler {
         return null;
     }
 
-
     private boolean isReferencePropertyType(int propertyType) {
         return propertyType == PropertyType.REFERENCE || propertyType == PropertyType.WEAKREFERENCE;
     }
@@ -323,8 +318,7 @@ public class SlingPropertyValueHandler {
      * either by an explicit type hint in the request or simply the type of the
      * existing property.
      */
-    private int getType(final Modifiable parent, RequestProperty prop)
-    throws PersistenceException {
+    private int getType(final Modifiable parent, RequestProperty prop) throws PersistenceException {
         // no explicit typehint
         int type = PropertyType.UNDEFINED;
         if (prop.getTypeHint() != null) {
@@ -335,9 +329,9 @@ public class SlingPropertyValueHandler {
             }
         }
         String[] values = prop.getStringValues();
-        if ( type == PropertyType.UNDEFINED && values != null && values.length > 0 ) {
+        if (type == PropertyType.UNDEFINED && values != null && values.length > 0) {
             final Integer jcrType = jcrSupport.getPropertyType(parent.node, prop.getName());
-            if ( jcrType != null ) {
+            if (jcrType != null) {
                 type = jcrType;
             }
         }
@@ -348,7 +342,7 @@ public class SlingPropertyValueHandler {
      * Returns whether the property should be handled as multi-valued.
      */
     private boolean isMultiValue(final Modifiable parent, RequestProperty prop, String[] values)
-    throws PersistenceException {
+            throws PersistenceException {
         // multiple values are provided
         if (values != null && values.length > 1) {
             return true;
@@ -363,12 +357,12 @@ public class SlingPropertyValueHandler {
         }
         // nothing in the request, so check the current JCR property definition
         final Object value = parent.valueMap.get(prop.getName());
-        if ( parent.node != null ) {
-            if ( value != null ) {
+        if (parent.node != null) {
+            if (value != null) {
                 return jcrSupport.isPropertyMultiple(parent.node, prop.getName());
             }
         } else {
-            if ( value != null && value.getClass().isArray() ) {
+            if (value != null && value.getClass().isArray()) {
                 return true;
             }
         }
@@ -379,13 +373,12 @@ public class SlingPropertyValueHandler {
      * Clears a property: sets an empty string for single-value properties, and
      * removes multi-value properties.
      */
-    private void clearProperty(final Modifiable parent, RequestProperty prop)
-    throws PersistenceException {
+    private void clearProperty(final Modifiable parent, RequestProperty prop) throws PersistenceException {
         if (parent.valueMap.containsKey(prop.getName())) {
-            if ( jcrSupport.isPropertyMultiple(parent.node, prop.getName()) ) {
+            if (jcrSupport.isPropertyMultiple(parent.node, prop.getName())) {
                 // the existing property is multi-valued, so just delete it?
                 final String removePath = removePropertyIfExists(parent, prop.getName());
-                if ( removePath != null ) {
+                if (removePath != null) {
                     changes.add(Modification.onDeleted(removePath));
                 }
             } else {
@@ -398,10 +391,9 @@ public class SlingPropertyValueHandler {
     /**
      * Removes the property if it exists.
      */
-    private void removeProperty(final Modifiable parent, final RequestProperty prop)
-    throws PersistenceException {
+    private void removeProperty(final Modifiable parent, final RequestProperty prop) throws PersistenceException {
         final String removePath = removePropertyIfExists(parent, prop.getName());
-        if ( removePath != null ) {
+        if (removePath != null) {
             changes.add(Modification.onDeleted(removePath));
         }
     }
@@ -409,16 +401,15 @@ public class SlingPropertyValueHandler {
     /**
      * Removes the property if it exists and is single-valued.
      */
-    private void removeIfSingleValueProperty(final Modifiable parent,
-            final RequestProperty prop)
-    throws PersistenceException {
+    private void removeIfSingleValueProperty(final Modifiable parent, final RequestProperty prop)
+            throws PersistenceException {
         if (parent.valueMap.containsKey(prop.getName())) {
-            if ( jcrSupport.isPropertyMultiple(parent.node, prop.getName()) ) {
+            if (jcrSupport.isPropertyMultiple(parent.node, prop.getName())) {
                 // do nothing, multi value
                 return;
             }
             final String removePath = removePropertyIfExists(parent, prop.getName());
-            if ( removePath != null ) {
+            if (removePath != null) {
                 changes.add(Modification.onDeleted(removePath));
             }
         }
@@ -435,7 +426,7 @@ public class SlingPropertyValueHandler {
      */
     private Calendar[] parse(final String sources[]) {
         final Calendar ret[] = new Calendar[sources.length];
-        for (int i=0; i< sources.length; i++) {
+        for (int i = 0; i < sources.length; i++) {
             final Calendar c = dateParser.parse(sources[i]);
             if (c == null) {
                 return null;
@@ -445,7 +436,6 @@ public class SlingPropertyValueHandler {
         return ret;
     }
 
-
     /**
      * Stores property value(s) as date(s). Will parse the date(s) from the string
      * value(s) in the {@link RequestProperty}.
@@ -453,7 +443,7 @@ public class SlingPropertyValueHandler {
      * @return true only if parsing was successful and the property was actually changed
      */
     private boolean storeAsDate(final Modifiable parent, String name, String[] values, boolean multiValued)
-    throws PersistenceException {
+            throws PersistenceException {
         if (multiValued) {
             final Calendar[] array = parse(values);
             if (array != null) {
@@ -481,13 +471,15 @@ public class SlingPropertyValueHandler {
      *
      * @return true only if parsing was successful and the property was actually changed
      */
-    private boolean storeAsReference(final Modifiable parent,
+    private boolean storeAsReference(
+            final Modifiable parent,
             final String name,
             final String[] values,
             final int type,
             final boolean multiValued)
-    throws PersistenceException {
-        final Modification mod = this.jcrSupport.storeAsReference(parent.resource, parent.node, name, values, type, multiValued);
+            throws PersistenceException {
+        final Modification mod =
+                this.jcrSupport.storeAsReference(parent.resource, parent.node, name, values, type, multiValued);
         return mod != null;
     }
 
@@ -495,13 +487,14 @@ public class SlingPropertyValueHandler {
      * Stores the property as string or via a string value, but with an explicit
      * type. Both multi-value or single-value.
      */
-    private void store(final Modifiable parent,
+    private void store(
+            final Modifiable parent,
             final String name,
             final String[] values,
             final int type,
             final boolean multiValued)
-    throws PersistenceException {
-        if ( parent.node != null && type != PropertyType.UNDEFINED ) {
+            throws PersistenceException {
+        if (parent.node != null && type != PropertyType.UNDEFINED) {
             jcrSupport.setTypedProperty(parent.node, name, values, type, multiValued);
 
         } else {
@@ -523,7 +516,7 @@ public class SlingPropertyValueHandler {
             case PropertyType.BOOLEAN:
                 return isEmpty ? Boolean.FALSE : Boolean.valueOf(value);
             case PropertyType.DOUBLE:
-                return isEmpty ? (double)0.0 : Double.valueOf(value);
+                return isEmpty ? (double) 0.0 : Double.valueOf(value);
             case PropertyType.LONG:
                 return isEmpty ? 0 : Long.valueOf(value);
             default: // fallback
@@ -535,14 +528,13 @@ public class SlingPropertyValueHandler {
     private static Object toJavaObject(final String values[], final int type) {
         final Object[] result = new Object[values.length];
         for (int i = 0; i < values.length; i++) {
-            if (values[i] != null ) {
+            if (values[i] != null) {
                 result[i] = toJavaObject(values[i], type);
             }
         }
         return result;
     }
 
-
     /**
      * Defines an auto property behavior
      */
@@ -553,7 +545,7 @@ public class SlingPropertyValueHandler {
         MODIFIED_BY
     }
 
-    public final static class Modifiable {
+    public static final class Modifiable {
         public Resource resource;
         public ModifiableValueMap valueMap;
         public Object node;
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/helper/StreamedChunk.java b/src/main/java/org/apache/sling/servlets/post/impl/helper/StreamedChunk.java
index a830d01..ab4e80f 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/helper/StreamedChunk.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/helper/StreamedChunk.java
@@ -1,20 +1,21 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.helper;
 
 import java.io.ByteArrayInputStream;
@@ -32,7 +33,6 @@ import java.util.regex.Pattern;
 
 import jakarta.servlet.ServletContext;
 import jakarta.servlet.http.Part;
-
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.sling.api.resource.ModifiableValueMap;
 import org.apache.sling.api.resource.PersistenceException;
@@ -95,19 +95,20 @@ public class StreamedChunk {
 
         String contentRangeHeader = part.getHeader("Content-Range");
         String contentLengthHeader = part.getHeader("Content-Length");
-        if ( contentRangeHeader != null ) {
+        if (contentRangeHeader != null) {
             ContentRange contentRange = new ContentRange(contentRangeHeader);
             fileLength = contentRange.length;
             offset = contentRange.offset;
             chunkLength = contentRange.range;
             chunked = true;
 
-        } else if ( formFields.containsKey(part.getName()+"@Length") && formFields.containsKey(part.getName()+"@Offset")) {
+        } else if (formFields.containsKey(part.getName() + "@Length")
+                && formFields.containsKey(part.getName() + "@Offset")) {
             fileLength = Long.parseLong(lastFrom(formFields.get(part.getName() + "@Length")));
             offset = Long.parseLong(lastFrom(formFields.get(part.getName() + "@Offset")));
             if (contentLengthHeader != null) {
                 chunkLength = Long.parseLong(contentLengthHeader);
-            } else if ( formFields.containsKey(part.getName() + "@PartLength")) {
+            } else if (formFields.containsKey(part.getName() + "@PartLength")) {
                 chunkLength = Long.parseLong(lastFrom(formFields.get(part.getName() + "@PartLength")));
             } else {
                 // must assume the chunk contains all the data.
@@ -118,19 +119,19 @@ public class StreamedChunk {
         } else {
             offset = 0;
             if (contentLengthHeader != null) {
-                fileLength =  Long.parseLong(contentLengthHeader);
+                fileLength = Long.parseLong(contentLengthHeader);
                 chunkLength = fileLength;
             } else {
                 fileLength = -1;
                 chunkLength = -1;
             }
             chunked = false;
-
         }
-        chunkResourceName = "chunk_"+offset+"-"+(offset+chunkLength);
-        completed = ((offset+chunkLength) == fileLength) || formFields.containsKey(part.getName()+"@Completed");
-        LOGGER.debug(" chunkResourceName {},  chunked {},completed {},  fileLength {}, chunkLength {}, offset {} ",
-                new Object[]{chunkResourceName, chunked, completed, fileLength, chunkLength, offset});
+        chunkResourceName = "chunk_" + offset + "-" + (offset + chunkLength);
+        completed = ((offset + chunkLength) == fileLength) || formFields.containsKey(part.getName() + "@Completed");
+        LOGGER.debug(
+                " chunkResourceName {},  chunked {},completed {},  fileLength {}, chunkLength {}, offset {} ",
+                new Object[] {chunkResourceName, chunked, completed, fileLength, chunkLength, offset});
     }
 
     /**
@@ -154,14 +155,13 @@ public class StreamedChunk {
         return result;
     }
 
-
     /**
      * The last element of strings.
      * @param strings a non null non zero string array.
      * @return the last element.
      */
     private String lastFrom(List<String> strings) {
-        return strings.get(strings.size()-1);
+        return strings.get(strings.size() - 1);
     }
 
     /**
@@ -171,25 +171,29 @@ public class StreamedChunk {
      * @throws IllegalStateException if the contentResource is not consistent with the part being streamed.
      * @throws PersistenceException if the part cant be streamed.
      */
-    private void updateState(Resource contentResource, List<Modification> changes) throws IllegalStateException, PersistenceException {
+    private void updateState(Resource contentResource, List<Modification> changes)
+            throws IllegalStateException, PersistenceException {
         final ModifiableValueMap vm = contentResource.adaptTo(ModifiableValueMap.class);
-        if ( vm == null ) {
+        if (vm == null) {
             throw new PersistenceException("Resource at " + contentResource.getPath() + " is not modifiable.");
         }
         vm.put(JcrConstants.JCR_LASTMODIFIED, Calendar.getInstance());
         vm.put(JcrConstants.JCR_MIMETYPE, getContentType(part));
         if (chunked) {
-            if ( vm.containsKey(SLING_FILE_LENGTH)) {
+            if (vm.containsKey(SLING_FILE_LENGTH)) {
                 long previousFileLength = vm.get(SLING_FILE_LENGTH, Long.class);
                 if (previousFileLength != fileLength) {
-                    throw new IllegalStateException("Chunk file length has changed while cunks were being uploaded expected " + previousFileLength + " chunk contained  " + fileLength);
+                    throw new IllegalStateException(
+                            "Chunk file length has changed while cunks were being uploaded expected "
+                                    + previousFileLength + " chunk contained  " + fileLength);
                 }
             }
             long previousChunksLength = 0;
-            if ( vm.containsKey(SLING_CHUNKS_LENGTH)) {
+            if (vm.containsKey(SLING_CHUNKS_LENGTH)) {
                 previousChunksLength = vm.get(SLING_CHUNKS_LENGTH, Long.class);
                 if (previousChunksLength != offset) {
-                    throw new IllegalStateException("Chunks recieved out of order, was expecting chunk starting at " + offset + " found last chunk ending at " + previousChunksLength);
+                    throw new IllegalStateException("Chunks recieved out of order, was expecting chunk starting at "
+                            + offset + " found last chunk ending at " + previousChunksLength);
                 }
             }
             vm.put(SLING_CHUNKS_LENGTH, previousChunksLength + chunkLength);
@@ -230,8 +234,9 @@ public class StreamedChunk {
             }
         }
 
-        Resource result = fileResource.getResourceResolver().create(fileResource, JcrConstants.JCR_CONTENT, resourceProps);
-        for( String key : resourceProps.keySet()) {
+        Resource result =
+                fileResource.getResourceResolver().create(fileResource, JcrConstants.JCR_CONTENT, resourceProps);
+        for (String key : resourceProps.keySet()) {
             changes.add(Modification.onModified(result.getPath() + '/' + key));
         }
         return result;
@@ -254,17 +259,15 @@ public class StreamedChunk {
                 throw new PersistenceException("Error while retrieving inputstream from request part.", e);
             }
             LOGGER.debug("Creating chunk at {} with properties {}  ", chunkResourceName, chunkProperties);
-            Resource chunkResource = contentResource.getResourceResolver().create(contentResource, chunkResourceName, chunkProperties);
-
+            Resource chunkResource =
+                    contentResource.getResourceResolver().create(contentResource, chunkResourceName, chunkProperties);
 
             for (String key : chunkProperties.keySet()) {
                 changes.add(Modification.onModified(chunkResource.getPath() + '/' + key));
             }
 
-
             processChunks(contentResource, changes);
         }
-
     }
 
     /**
@@ -292,7 +295,7 @@ public class StreamedChunk {
      * @throws PersistenceException
      */
     private void removeChunkData(Resource contentResource, ModifiableValueMap vm) throws PersistenceException {
-        for ( Resource r : contentResource.getChildren()) {
+        for (Resource r : contentResource.getChildren()) {
             if (r.isResourceType(SLING_CHUNK_NT)) {
                 r.getResourceResolver().delete(r);
             }
@@ -308,7 +311,7 @@ public class StreamedChunk {
      */
     private InputStream getChunksInputStream(Resource contentResource) {
         List<Resource> chunkResources = new ArrayList<>();
-        for ( Resource r : contentResource.getChildren()) {
+        for (Resource r : contentResource.getChildren()) {
             if (r.isResourceType(SLING_CHUNK_NT)) {
                 chunkResources.add(r);
             }
@@ -321,13 +324,12 @@ public class StreamedChunk {
                 return (int) (offset1 - offset2);
             }
         });
-        if ( LOGGER.isDebugEnabled()) {
-            LOGGER.debug("Finishing Chunk upload at {} consolidating {} chunks into one file of  ",
-                    new Object[]{
-                            contentResource.getPath(),
-                            chunkResources.size(),
-                            contentResource.adaptTo(ValueMap.class).get(SLING_CHUNKS_LENGTH)
-                    });
+        if (LOGGER.isDebugEnabled()) {
+            LOGGER.debug("Finishing Chunk upload at {} consolidating {} chunks into one file of  ", new Object[] {
+                contentResource.getPath(),
+                chunkResources.size(),
+                contentResource.adaptTo(ValueMap.class).get(SLING_CHUNKS_LENGTH)
+            });
             LOGGER.debug("Content Resource Properties {} ", contentResource.adaptTo(ValueMap.class));
             for (Resource r : chunkResources) {
                 LOGGER.debug("Chunk {} properties {} ", r.getPath(), r.adaptTo(ValueMap.class));
@@ -387,32 +389,35 @@ public class StreamedChunk {
         public long offset;
         public long range;
 
-
         public ContentRange(String contentRangeHeader) {
             Matcher m = rangePattern.matcher(contentRangeHeader);
-            if ( m.find() ) {
+            if (m.find()) {
                 offset = Long.parseLong(m.group(1));
                 long end = Long.parseLong(m.group(2));
-                range = end-offset+1;
+                range = end - offset + 1;
                 if ("*".equals(m.group(4))) {
                     length = -1;
                 } else {
                     length = Long.parseLong(m.group(3));
-                    if ( offset > length ) {
-                        throw new IllegalArgumentException("Range header "+contentRangeHeader+" is invalid, offset beyond end.");
+                    if (offset > length) {
+                        throw new IllegalArgumentException(
+                                "Range header " + contentRangeHeader + " is invalid, offset beyond end.");
                     }
-                    if ( end > length ) {
-                        throw new IllegalArgumentException("Range header "+contentRangeHeader+" is invalid, range end beyond end.");
+                    if (end > length) {
+                        throw new IllegalArgumentException(
+                                "Range header " + contentRangeHeader + " is invalid, range end beyond end.");
                     }
-                    if ( range > length ) {
-                        throw new IllegalArgumentException("Range header "+contentRangeHeader+" is invalid, range greater than length.");
+                    if (range > length) {
+                        throw new IllegalArgumentException(
+                                "Range header " + contentRangeHeader + " is invalid, range greater than length.");
                     }
                 }
-                if ( offset > end ) {
-                    throw new IllegalArgumentException("Range header "+contentRangeHeader+" is invalid, offset beyond end of range.");
+                if (offset > end) {
+                    throw new IllegalArgumentException(
+                            "Range header " + contentRangeHeader + " is invalid, offset beyond end of range.");
                 }
             } else {
-                throw new IllegalArgumentException("Range header "+contentRangeHeader+" is invalid");
+                throw new IllegalArgumentException("Range header " + contentRangeHeader + " is invalid");
             }
         }
     }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCopyMoveOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCopyMoveOperation.java
index 004af91..87105b0 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCopyMoveOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCopyMoveOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
@@ -20,7 +22,6 @@ import java.util.Iterator;
 import java.util.List;
 
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
@@ -38,10 +39,11 @@ import org.apache.sling.servlets.post.VersioningConfiguration;
 abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
 
     @Override
-    protected final void doRun(final SlingJakartaHttpServletRequest request,
+    protected final void doRun(
+            final SlingJakartaHttpServletRequest request,
             final JakartaPostResponse response,
             final List<Modification> changes)
-    throws PersistenceException {
+            throws PersistenceException {
         final VersioningConfiguration versioningConfiguration = getVersioningConfiguration(request);
 
         final Resource resource = request.getResource();
@@ -50,8 +52,7 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
         // ensure dest is not empty/null and is absolute
         String dest = request.getParameter(SlingPostConstants.RP_DEST);
         if (dest == null || dest.length() == 0) {
-            throw new IllegalArgumentException("Unable to process "
-                    + getOperationName() + ". Missing destination");
+            throw new IllegalArgumentException("Unable to process " + getOperationName() + ". Missing destination");
         }
 
         // register whether the path ends with a trailing slash
@@ -67,18 +68,18 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
         final String dstParent = trailingSlash ? dest : ResourceUtil.getParent(dest);
 
         // delete destination if already exists
-        if (!trailingSlash && request.getResourceResolver().getResource(dest) != null ) {
+        if (!trailingSlash && request.getResourceResolver().getResource(dest) != null) {
 
             final String replaceString = request.getParameter(SlingPostConstants.RP_REPLACE);
             final boolean isReplace = "true".equalsIgnoreCase(replaceString);
             if (!isReplace) {
-                response.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED,
-                    "Cannot " + getOperationName() + " " + resource + " to "
-                        + dest + ": destination exists");
+                response.setStatus(
+                        HttpServletResponse.SC_PRECONDITION_FAILED,
+                        "Cannot " + getOperationName() + " " + resource + " to " + dest + ": destination exists");
                 return;
             } else {
-                this.jcrSupport.checkoutIfNecessary(request.getResourceResolver().getResource(dstParent),
-                        changes, versioningConfiguration);
+                this.jcrSupport.checkoutIfNecessary(
+                        request.getResourceResolver().getResource(dstParent), changes, versioningConfiguration);
             }
 
         } else {
@@ -87,12 +88,13 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
             // if it's a descendant of the current node
             if (!dstParent.equals("")) {
                 final Resource parentResource = request.getResourceResolver().getResource(dstParent);
-                if (parentResource != null ) {
+                if (parentResource != null) {
                     this.jcrSupport.checkoutIfNecessary(parentResource, changes, versioningConfiguration);
                 } else {
-                    response.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED,
-                        "Cannot " + getOperationName() + " " + resource + " to "
-                            + dest + ": parent of destination does not exist");
+                    response.setStatus(
+                            HttpServletResponse.SC_PRECONDITION_FAILED,
+                            "Cannot " + getOperationName() + " " + resource + " to " + dest
+                                    + ": parent of destination does not exist");
                     return;
                 }
             }
@@ -112,8 +114,7 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
 
             // multiple applyTo requires trailing slash on destination
             if (!trailingSlash) {
-                throw new IllegalArgumentException(
-                    "Applying "
+                throw new IllegalArgumentException("Applying "
                         + getOperationName()
                         + " to multiple resources requires a trailing slash on the destination");
             }
@@ -126,12 +127,11 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
                 execute(changes, applyTo, dstParent, null, versioningConfiguration);
             }
             destResource = request.getResourceResolver().getResource(dest);
-
         }
 
-        if ( destResource == null ) {
-            response.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                    "Missing source " + resource + " for " + getOperationName());
+        if (destResource == null) {
+            response.setStatus(
+                    HttpServletResponse.SC_NOT_FOUND, "Missing source " + resource + " for " + getOperationName());
             return;
         }
         // finally apply the ordering parameter
@@ -158,11 +158,11 @@ abstract class AbstractCopyMoveOperation extends AbstractPostOperation {
      * @throws PersistenceException May be thrown if an error occurs executing
      *             the operation.
      */
-    protected abstract Resource execute(List<Modification> changes,
+    protected abstract Resource execute(
+            List<Modification> changes,
             Resource source,
             String destParent,
             String destName,
             VersioningConfiguration versioningConfiguration)
-    throws PersistenceException;
-
+            throws PersistenceException;
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
index 576931f..c72f720 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
@@ -1,20 +1,21 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.operations;
 
 import java.util.Enumeration;
@@ -62,22 +63,19 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
     private Pattern ignoredParameterNamePattern;
 
     protected AbstractCreateOperation() {
-		this.defaultNodeNameGenerator = new DefaultNodeNameGenerator();
-		this.ignoredParameterNamePattern = null;
+        this.defaultNodeNameGenerator = new DefaultNodeNameGenerator();
+        this.ignoredParameterNamePattern = null;
     }
 
-    public void setDefaultNodeNameGenerator(
-            JakartaNodeNameGenerator defaultNodeNameGenerator) {
+    public void setDefaultNodeNameGenerator(JakartaNodeNameGenerator defaultNodeNameGenerator) {
         this.defaultNodeNameGenerator = defaultNodeNameGenerator;
     }
 
-    public void setExtraNodeNameGenerators(
-            JakartaNodeNameGenerator[] extraNodeNameGenerators) {
+    public void setExtraNodeNameGenerators(JakartaNodeNameGenerator[] extraNodeNameGenerators) {
         this.extraNodeNameGenerators = extraNodeNameGenerators;
     }
 
-    public void setIgnoredParameterNamePattern(
-            final Pattern ignoredParameterNamePattern) {
+    public void setIgnoredParameterNamePattern(final Pattern ignoredParameterNamePattern) {
         this.ignoredParameterNamePattern = ignoredParameterNamePattern;
     }
 
@@ -95,8 +93,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @param request The http request
      * @return If a prefix is required.
      */
-    private final boolean requireItemPathPrefix(
-            SlingJakartaHttpServletRequest request) {
+    private final boolean requireItemPathPrefix(SlingJakartaHttpServletRequest request) {
 
         boolean requirePrefix = false;
 
@@ -109,8 +106,6 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
         return requirePrefix;
     }
 
-
-
     /**
      * Returns <code>true</code> if the <code>name</code> starts with either
      * of the prefixes
@@ -123,8 +118,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      */
     private boolean hasItemPathPrefix(String name) {
         return name.startsWith(SlingPostConstants.ITEM_PREFIX_ABSOLUTE)
-            || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT)
-            || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_PARENT);
+                || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT)
+                || name.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_PARENT);
     }
 
     /**
@@ -137,17 +132,18 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @param versioningConfiguration versioning configuration
      * @throws PersistenceException if a resource error occurs
      */
-    protected void processCreate(final ResourceResolver resolver,
+    protected void processCreate(
+            final ResourceResolver resolver,
             final Map<String, RequestProperty> reqProperties,
             final JakartaPostResponse response,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
 
         final String path = response.getPath();
         final Resource resource = resolver.getResource(path);
 
-        if ( resource == null || ResourceUtil.isSyntheticResource(resource) ) {
+        if (resource == null || ResourceUtil.isSyntheticResource(resource)) {
             deepGetOrCreateResource(resolver, path, reqProperties, changes, versioningConfiguration);
             response.setCreateRequest(true);
 
@@ -157,33 +153,34 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
         }
     }
 
-    protected void updateNodeType(final ResourceResolver resolver,
-                    final String path,
-                    final Map<String, RequestProperty> reqProperties,
-                    final List<Modification> changes,
-                    final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+    protected void updateNodeType(
+            final ResourceResolver resolver,
+            final String path,
+            final Map<String, RequestProperty> reqProperties,
+            final List<Modification> changes,
+            final VersioningConfiguration versioningConfiguration)
+            throws PersistenceException {
         final String nodeType = getPrimaryType(reqProperties, path);
         if (nodeType != null) {
             final Resource rsrc = resolver.getResource(path);
             final ModifiableValueMap mvm = rsrc.adaptTo(ModifiableValueMap.class);
-            if ( mvm != null ) {
+            if (mvm != null) {
                 final Object node = this.jcrSupport.getNode(rsrc);
                 final boolean wasVersionable = (node == null ? false : this.jcrSupport.isVersionable(rsrc));
 
-                if ( node != null ) {
+                if (node != null) {
                     this.jcrSupport.checkoutIfNecessary(rsrc, changes, versioningConfiguration);
                     this.jcrSupport.setPrimaryNodeType(node, nodeType);
                 } else {
                     mvm.put(JcrConstants.JCR_PRIMARYTYPE, nodeType);
                 }
 
-                if ( node != null ) {
+                if (node != null) {
                     // this is a bit of a cheat; there isn't a formal checkout, but assigning
                     // the mix:versionable mixin does an implicit checkout
-                    if (!wasVersionable &&
-                            versioningConfiguration.isCheckinOnNewVersionableNode() &&
-                            this.jcrSupport.isVersionable(rsrc)) {
+                    if (!wasVersionable
+                            && versioningConfiguration.isCheckinOnNewVersionableNode()
+                            && this.jcrSupport.isVersionable(rsrc)) {
                         changes.add(Modification.onCheckout(path));
                     }
                 }
@@ -191,26 +188,27 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
         }
     }
 
-    protected void updateMixins(final ResourceResolver resolver,
-                    final String path,
-                    final Map<String, RequestProperty> reqProperties,
-                    final List<Modification> changes,
-                    final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+    protected void updateMixins(
+            final ResourceResolver resolver,
+            final String path,
+            final Map<String, RequestProperty> reqProperties,
+            final List<Modification> changes,
+            final VersioningConfiguration versioningConfiguration)
+            throws PersistenceException {
         final String[] mixins = getMixinTypes(reqProperties, path);
         if (mixins != null) {
 
             final Resource rsrc = resolver.getResource(path);
             final ModifiableValueMap mvm = rsrc.adaptTo(ModifiableValueMap.class);
-            if ( mvm != null ) {
+            if (mvm != null) {
                 this.jcrSupport.checkoutIfNecessary(rsrc, changes, versioningConfiguration);
                 mvm.put(JcrConstants.JCR_MIXINTYPES, mixins);
 
-                for(final String mixin : mixins) {
+                for (final String mixin : mixins) {
                     // this is a bit of a cheat; there isn't a formal checkout, but assigning
                     // the mix:versionable mixin does an implicit checkout
-                    if (mixin.equals(JcrConstants.MIX_VERSIONABLE) &&
-                            versioningConfiguration.isCheckinOnNewVersionableNode()) {
+                    if (mixin.equals(JcrConstants.MIX_VERSIONABLE)
+                            && versioningConfiguration.isCheckinOnNewVersionableNode()) {
                         changes.add(Modification.onCheckout(path));
                     }
                 }
@@ -226,14 +224,14 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @return the collected properties
      */
     protected Map<String, RequestProperty> collectContent(
-            final SlingJakartaHttpServletRequest request,
-            final JakartaPostResponse response) {
+            final SlingJakartaHttpServletRequest request, final JakartaPostResponse response) {
 
         final boolean requireItemPrefix = requireItemPathPrefix(request);
 
         // walk the request parameters and collect the properties
         final LinkedHashMap<String, RequestProperty> reqProperties = new LinkedHashMap<>();
-        for (final Map.Entry<String, RequestParameter[]> e : request.getRequestParameterMap().entrySet()) {
+        for (final Map.Entry<String, RequestParameter[]> e :
+                request.getRequestParameterMap().entrySet()) {
             final String paramName = e.getKey();
 
             if (ignoreParameter(paramName)) {
@@ -253,9 +251,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // <input type="hidden" name="./age@TypeHint" value="long" />
             // causes the setProperty using the 'long' property type
             if (propPath.endsWith(SlingPostConstants.TYPE_HINT_SUFFIX)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.TYPE_HINT_SUFFIX);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.TYPE_HINT_SUFFIX);
 
                 final RequestParameter[] rp = e.getValue();
                 if (rp.length > 0) {
@@ -267,9 +264,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
 
             // @DefaultValue
             if (propPath.endsWith(SlingPostConstants.DEFAULT_VALUE_SUFFIX)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.DEFAULT_VALUE_SUFFIX);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.DEFAULT_VALUE_SUFFIX);
 
                 prop.setDefaultValues(e.getValue());
 
@@ -283,9 +279,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // causes the JCR Text property to be set to the value of the
             // fulltext form field.
             if (propPath.endsWith(SlingPostConstants.VALUE_FROM_SUFFIX)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.VALUE_FROM_SUFFIX);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.VALUE_FROM_SUFFIX);
 
                 // @ValueFrom params must have exactly one value, else ignored
                 if (e.getValue().length == 1) {
@@ -304,8 +299,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // <input name="./Text@Delete" type="hidden" />
             // causes the JCR Text property to be deleted before update
             if (propPath.endsWith(SlingPostConstants.SUFFIX_DELETE)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath, SlingPostConstants.SUFFIX_DELETE);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_DELETE);
 
                 prop.setDelete(true);
 
@@ -318,9 +313,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // causes the JCR Text property to be set by moving the /tmp/path
             // property to Text.
             if (propPath.endsWith(SlingPostConstants.SUFFIX_MOVE_FROM)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.SUFFIX_MOVE_FROM);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_MOVE_FROM);
 
                 // @MoveFrom params must have exactly one value, else ignored
                 if (e.getValue().length == 1) {
@@ -337,9 +331,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // causes the JCR Text property to be set by copying the /tmp/path
             // property to Text.
             if (propPath.endsWith(SlingPostConstants.SUFFIX_COPY_FROM)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.SUFFIX_COPY_FROM);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_COPY_FROM);
 
                 // @MoveFrom params must have exactly one value, else ignored
                 if (e.getValue().length == 1) {
@@ -359,9 +352,8 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // causes the JCR Text property to be set by copying the /tmp/path
             // property to Text.
             if (propPath.endsWith(SlingPostConstants.SUFFIX_IGNORE_BLANKS)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.SUFFIX_IGNORE_BLANKS);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_IGNORE_BLANKS);
 
                 if (e.getValue().length == 1) {
                     prop.setIgnoreBlanks(true);
@@ -372,8 +364,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
 
             if (propPath.endsWith(SlingPostConstants.SUFFIX_USE_DEFAULT_WHEN_MISSING)) {
                 final RequestProperty prop = getOrCreateRequestProperty(
-                    reqProperties, propPath,
-                    SlingPostConstants.SUFFIX_USE_DEFAULT_WHEN_MISSING);
+                        reqProperties, propPath, SlingPostConstants.SUFFIX_USE_DEFAULT_WHEN_MISSING);
 
                 if (e.getValue().length == 1) {
                     prop.setUseDefaultWhenMissing(true);
@@ -388,21 +379,19 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             // <input name="tags"          value="+apple" type="hidden" />
             // <input name="tags"          value="-orange" type="hidden" />
             if (propPath.endsWith(SlingPostConstants.SUFFIX_PATCH)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                        reqProperties, propPath,
-                        SlingPostConstants.SUFFIX_PATCH);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_PATCH);
 
                 prop.setPatch(true);
 
                 continue;
             }
             if (propPath.endsWith(SlingPostConstants.SUFFIX_OFFSET)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                        reqProperties, propPath,
-                        SlingPostConstants.SUFFIX_OFFSET);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_OFFSET);
                 if (e.getValue().length == 1) {
                     Chunk chunk = prop.getChunk();
-                    if(chunk == null){
+                    if (chunk == null) {
                         chunk = new Chunk();
                     }
                     chunk.setOffsetValue(Long.parseLong(e.getValue()[0].toString()));
@@ -412,12 +401,11 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             }
 
             if (propPath.endsWith(SlingPostConstants.SUFFIX_COMPLETED)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                        reqProperties, propPath,
-                        SlingPostConstants.SUFFIX_COMPLETED);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_COMPLETED);
                 if (e.getValue().length == 1) {
                     Chunk chunk = prop.getChunk();
-                    if(chunk == null){
+                    if (chunk == null) {
                         chunk = new Chunk();
                     }
                     chunk.setCompleted(Boolean.parseBoolean((e.getValue()[0].toString())));
@@ -427,12 +415,11 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             }
 
             if (propPath.endsWith(SlingPostConstants.SUFFIX_LENGTH)) {
-                final RequestProperty prop = getOrCreateRequestProperty(
-                        reqProperties, propPath,
-                        SlingPostConstants.SUFFIX_LENGTH);
+                final RequestProperty prop =
+                        getOrCreateRequestProperty(reqProperties, propPath, SlingPostConstants.SUFFIX_LENGTH);
                 if (e.getValue().length == 1) {
                     Chunk chunk = prop.getChunk();
-                    if(chunk == null){
+                    if (chunk == null) {
                         chunk = new Chunk();
                     }
                     chunk.setLength(Long.parseLong(e.getValue()[0].toString()));
@@ -442,8 +429,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             }
 
             // plain property, create from values
-            final RequestProperty prop = getOrCreateRequestProperty(reqProperties,
-                propPath, null);
+            final RequestProperty prop = getOrCreateRequestProperty(reqProperties, propPath, null);
             prop.setValues(e.getValue());
         }
 
@@ -467,7 +453,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
 
         // SLING-2120: ignore parameter match ignoredParameterNamePattern
         if (this.ignoredParameterNamePattern != null
-            && this.ignoredParameterNamePattern.matcher(paramName).matches()) {
+                && this.ignoredParameterNamePattern.matcher(paramName).matches()) {
             return true;
         }
 
@@ -502,8 +488,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
     private RequestProperty getOrCreateRequestProperty(
             Map<String, RequestProperty> props, String paramName, String suffix) {
         if (suffix != null && paramName.endsWith(suffix)) {
-            paramName = paramName.substring(0, paramName.length()
-                - suffix.length());
+            paramName = paramName.substring(0, paramName.length() - suffix.length());
         }
 
         RequestProperty prop = props.get(paramName);
@@ -515,7 +500,6 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
         return prop;
     }
 
-
     /**
      * Deep gets or creates a resource, parent-padding with default resources. If
      * the path is empty, the given parent resource is returned.
@@ -530,12 +514,13 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @throws IllegalArgumentException if the path is relative and parent is
      *             <code>null</code>
      */
-    protected Resource deepGetOrCreateResource(final ResourceResolver resolver,
-                    final String path,
-                    final Map<String, RequestProperty> reqProperties,
-                    final List<Modification> changes,
-                    final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+    protected Resource deepGetOrCreateResource(
+            final ResourceResolver resolver,
+            final String path,
+            final Map<String, RequestProperty> reqProperties,
+            final List<Modification> changes,
+            final VersioningConfiguration versioningConfiguration)
+            throws PersistenceException {
         if (log.isDebugEnabled()) {
             log.debug("Deep-creating resource '{}'", path);
         }
@@ -548,12 +533,13 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
         while (startingResource == null) {
             if (startingResourcePath.equals("/")) {
                 startingResource = resolver.getResource("/");
-                if (startingResource == null){
-                	throw new PersistenceException("Access denied for root resource, resource can't be created: " + path);
+                if (startingResource == null) {
+                    throw new PersistenceException(
+                            "Access denied for root resource, resource can't be created: " + path);
                 }
             } else {
                 final Resource r = resolver.getResource(startingResourcePath);
-                if ( r != null && !ResourceUtil.isSyntheticResource(r)) {
+                if (r != null && !ResourceUtil.isSyntheticResource(r)) {
                     startingResource = resolver.getResource(startingResourcePath);
                     updateNodeType(resolver, startingResourcePath, reqProperties, changes, versioningConfiguration);
                     updateMixins(resolver, startingResourcePath, reqProperties, changes, versioningConfiguration);
@@ -572,14 +558,11 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
             return startingResource;
         }
         // create nodes
-        int from = (startingResourcePath.length() == 1
-                ? 1
-                : startingResourcePath.length() + 1);
+        int from = (startingResourcePath.length() == 1 ? 1 : startingResourcePath.length() + 1);
         Resource resource = startingResource;
         while (from > 0) {
             final int to = path.indexOf('/', from);
-            final String name = to < 0 ? path.substring(from) : path.substring(
-                from, to);
+            final String name = to < 0 ? path.substring(from) : path.substring(from, to);
             // although the resource should not exist (according to the first test
             // above)
             // we do a sanety check.
@@ -601,8 +584,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
                         props.put("jcr:primaryType", nodeType);
                     }
                     // check for mixin types
-                    final String[] mixinTypes = getMixinTypes(reqProperties,
-                        tmpPath);
+                    final String[] mixinTypes = getMixinTypes(reqProperties, tmpPath);
                     if (mixinTypes != null) {
                         props.put("jcr:mixinTypes", mixinTypes);
                     }
@@ -626,8 +608,7 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @param path path to check
      * @return the primary type or <code>null</code>
      */
-    private String getPrimaryType(Map<String, RequestProperty> reqProperties,
-            String path) {
+    private String getPrimaryType(Map<String, RequestProperty> reqProperties, String path) {
         RequestProperty prop = reqProperties.get(path + "/jcr:primaryType");
         return prop == null ? null : prop.getStringValues()[0];
     }
@@ -639,90 +620,91 @@ abstract class AbstractCreateOperation extends AbstractPostOperation {
      * @param path path to check
      * @return the mixin types or <code>null</code>
      */
-    private String[] getMixinTypes(Map<String, RequestProperty> reqProperties,
-            String path) {
+    private String[] getMixinTypes(Map<String, RequestProperty> reqProperties, String path) {
         RequestProperty prop = reqProperties.get(path + "/jcr:mixinTypes");
         return (prop == null) || !prop.hasValues() ? null : prop.getStringValues();
     }
 
+    protected String generateName(SlingJakartaHttpServletRequest request, String basePath) throws PersistenceException {
+
+        // SLING-1091: If a :name parameter is supplied, the (first) value of this parameter is used unmodified as the
+        // name
+        //    for the new node. If the name is illegally formed with respect to JCR name requirements, an exception will
+        // be
+        //    thrown when trying to create the node. The assumption with the :name parameter is, that the caller knows
+        // what
+        //    he (or she) is supplying and should get the exact result if possible.
+        RequestParameterMap parameters = request.getRequestParameterMap();
+        RequestParameter specialParam = parameters.getValue(SlingPostConstants.RP_NODE_NAME);
+        if (specialParam != null) {
+            if (specialParam.getString() != null && specialParam.getString().length() > 0) {
+                // If the path ends with a *, create a node under its parent, with
+                // a generated node name
+                basePath = basePath += "/" + specialParam.getString();
+
+                // if the resulting path already exists then report an error
+                if (request.getResourceResolver().getResource(basePath) != null) {
+                    throw new PersistenceException("Collision in node names for path=" + basePath);
+                }
 
-    protected String generateName(SlingJakartaHttpServletRequest request, String basePath)
-    	throws PersistenceException {
-
-		// SLING-1091: If a :name parameter is supplied, the (first) value of this parameter is used unmodified as the name
-		//    for the new node. If the name is illegally formed with respect to JCR name requirements, an exception will be
-		//    thrown when trying to create the node. The assumption with the :name parameter is, that the caller knows what
-		//    he (or she) is supplying and should get the exact result if possible.
-		RequestParameterMap parameters = request.getRequestParameterMap();
-		RequestParameter specialParam = parameters.getValue(SlingPostConstants.RP_NODE_NAME);
-		if ( specialParam != null ) {
-		    if ( specialParam.getString() != null && specialParam.getString().length() > 0 ) {
-		        // If the path ends with a *, create a node under its parent, with
-		        // a generated node name
-		        basePath = basePath += "/" + specialParam.getString();
-
-		        // if the resulting path already exists then report an error
-	            if (request.getResourceResolver().getResource(basePath) != null) {
-	    		    throw new PersistenceException(
-	    			        "Collision in node names for path=" + basePath);
-	            }
-
-		        return basePath;
-		    }
-		}
-
-		// no :name value was supplied, so generate a name
-		boolean requirePrefix = requireItemPathPrefix(request);
-
-		String generatedName = null;
-		if (extraNodeNameGenerators != null) {
-		    for (JakartaNodeNameGenerator generator : extraNodeNameGenerators) {
-		        generatedName = generator.getNodeName(request, basePath, requirePrefix, defaultNodeNameGenerator);
-		        if (generatedName != null) {
-		            break;
-		        }
-		    }
-		}
-		if (generatedName == null) {
-		    generatedName = defaultNodeNameGenerator.getNodeName(request, basePath, requirePrefix, defaultNodeNameGenerator);
-		}
-
-		// If the path ends with a *, create a node under its parent, with
-		// a generated node name
-		basePath += "/" + generatedName;
-
-		basePath = ensureUniquePath(request, basePath);
-
-		return basePath;
+                return basePath;
+            }
+        }
+
+        // no :name value was supplied, so generate a name
+        boolean requirePrefix = requireItemPathPrefix(request);
+
+        String generatedName = null;
+        if (extraNodeNameGenerators != null) {
+            for (JakartaNodeNameGenerator generator : extraNodeNameGenerators) {
+                generatedName = generator.getNodeName(request, basePath, requirePrefix, defaultNodeNameGenerator);
+                if (generatedName != null) {
+                    break;
+                }
+            }
+        }
+        if (generatedName == null) {
+            generatedName =
+                    defaultNodeNameGenerator.getNodeName(request, basePath, requirePrefix, defaultNodeNameGenerator);
+        }
+
+        // If the path ends with a *, create a node under its parent, with
+        // a generated node name
+        basePath += "/" + generatedName;
+
+        basePath = ensureUniquePath(request, basePath);
+
+        return basePath;
     }
 
     /** Generate a unique path in case the node name generator didn't */
-    private String ensureUniquePath(SlingJakartaHttpServletRequest request, String basePath) throws PersistenceException {
-		// if resulting path exists, add a suffix until it's not the case
-		// anymore
+    private String ensureUniquePath(SlingJakartaHttpServletRequest request, String basePath)
+            throws PersistenceException {
+        // if resulting path exists, add a suffix until it's not the case
+        // anymore
         final ResourceResolver resolver = request.getResourceResolver();
 
-		// if resulting path exists, add a random suffix until it's not the case
-		// anymore
-		final int MAX_TRIES = 1000;
-		if (resolver.getResource(basePath) != null ) {
-		    for(int i=0; i < MAX_TRIES; i++) {
-		        final int uniqueIndex = Math.abs(randomCollisionIndex.nextInt());
-		        String newPath = basePath + "_" + uniqueIndex;
-		        if (resolver.getResource(newPath) == null) {
-		            basePath = basePath + "_" + uniqueIndex;
-		            basePath = newPath;
-		            break;
-		        }
-		    }
-
-	        // Give up after MAX_TRIES
-	        if (resolver.getResource(basePath) != null ) {
-	            throw new PersistenceException(
-	                "Collision in generated node names under " + basePath + ", generated path " + basePath + " already exists");
-	        }
-		}
-
-		return basePath;
+        // if resulting path exists, add a random suffix until it's not the case
+        // anymore
+        final int MAX_TRIES = 1000;
+        if (resolver.getResource(basePath) != null) {
+            for (int i = 0; i < MAX_TRIES; i++) {
+                final int uniqueIndex = Math.abs(randomCollisionIndex.nextInt());
+                String newPath = basePath + "_" + uniqueIndex;
+                if (resolver.getResource(newPath) == null) {
+                    basePath = basePath + "_" + uniqueIndex;
+                    basePath = newPath;
+                    break;
+                }
+            }
+
+            // Give up after MAX_TRIES
+            if (resolver.getResource(basePath) != null) {
+                throw new PersistenceException("Collision in generated node names under " + basePath
+                        + ", generated path " + basePath + " already exists");
+            }
+        }
+
+        return basePath;
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java
index 8bd1f45..c266a07 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
@@ -79,9 +81,11 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @param processors The array of processors
      */
     @Override
-    public void run(final SlingJakartaHttpServletRequest request,
-                    final JakartaPostResponse response,
-                    final SlingJakartaPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException {
+    public void run(
+            final SlingJakartaHttpServletRequest request,
+            final JakartaPostResponse response,
+            final SlingJakartaPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException {
         final VersioningConfiguration versionableConfiguration = getVersioningConfiguration(request);
 
         try {
@@ -106,14 +110,17 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
             try {
                 if (processors != null) {
                     for (SlingJakartaPostProcessor processor : processors) {
-                        request.getRequestProgressTracker().log("Calling Sling Post Processor {0}", processor.getClass().getName());
+                        request.getRequestProgressTracker()
+                                .log(
+                                        "Calling Sling Post Processor {0}",
+                                        processor.getClass().getName());
                         processor.process(request, changes);
                     }
                 }
-            } catch (PreconditionViolatedPersistenceException|TemporaryPersistenceException e) {
+            } catch (PreconditionViolatedPersistenceException | TemporaryPersistenceException e) {
                 throw e;
             } catch (Exception e) {
-                throw new PersistenceException("Exception during response processing",e);
+                throw new PersistenceException("Exception during response processing", e);
             }
 
             // check modifications for remaining postfix and store the base path
@@ -130,12 +137,13 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
                 }
             }
 
-            // fail if any of the base paths (before the postfix) which had a postfix are contained in the modification set
+            // fail if any of the base paths (before the postfix) which had a postfix are contained in the modification
+            // set
             if (modificationSourcesContainingPostfix.size() > 0) {
                 for (final Map.Entry<String, String> sourceToCheck : modificationSourcesContainingPostfix.entrySet()) {
                     if (allModificationSources.contains(sourceToCheck.getKey())) {
-                        throw new PersistenceException("Postfix-containing path " + sourceToCheck.getValue() +
-                                " contained in the modification list. Check configuration.");
+                        throw new PersistenceException("Postfix-containing path " + sourceToCheck.getValue()
+                                + " contained in the modification list. Check configuration.");
                     }
                 }
             }
@@ -143,28 +151,39 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
             final Set<String> nodesToCheckin = new LinkedHashSet<>();
 
             // set changes on html response
-            for(Modification change : changes) {
-                switch ( change.getType() ) {
-                    case MODIFY : response.onModified(change.getSource()); break;
-                    case DELETE : response.onDeleted(change.getSource()); break;
-                    case MOVE   : response.onMoved(change.getSource(), change.getDestination()); break;
-                    case COPY   : response.onCopied(change.getSource(), change.getDestination()); break;
-                    case CREATE :
+            for (Modification change : changes) {
+                switch (change.getType()) {
+                    case MODIFY:
+                        response.onModified(change.getSource());
+                        break;
+                    case DELETE:
+                        response.onDeleted(change.getSource());
+                        break;
+                    case MOVE:
+                        response.onMoved(change.getSource(), change.getDestination());
+                        break;
+                    case COPY:
+                        response.onCopied(change.getSource(), change.getDestination());
+                        break;
+                    case CREATE:
                         response.onCreated(change.getSource());
                         if (versionableConfiguration.isCheckinOnNewVersionableNode()) {
                             nodesToCheckin.add(change.getSource());
                         }
                         break;
-                    case ORDER  : response.onChange("ordered", change.getSource(), change.getDestination()); break;
-                    case CHECKOUT :
+                    case ORDER:
+                        response.onChange("ordered", change.getSource(), change.getDestination());
+                        break;
+                    case CHECKOUT:
                         response.onChange("checkout", change.getSource());
                         nodesToCheckin.add(change.getSource());
                         break;
-                    case CHECKIN :
+                    case CHECKIN:
                         response.onChange("checkin", change.getSource());
                         nodesToCheckin.remove(change.getSource());
                         break;
-                    case RESTORE : response.onChange("restore", change.getSource());
+                    case RESTORE:
+                        response.onChange("restore", change.getSource());
                         break;
                 }
             }
@@ -175,7 +194,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
 
             if (!isSkipCheckin(request)) {
                 // now do the checkins
-                for(String checkinPath : nodesToCheckin) {
+                for (String checkinPath : nodesToCheckin) {
                     if (this.jcrSupport.checkin(request.getResourceResolver().getResource(checkinPath))) {
                         response.onChange("checkin", checkinPath);
                     }
@@ -208,9 +227,9 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @throws PersistenceException Maybe thrown if any error occurs while
      *             accessing the repository.
      */
-    protected abstract void doRun(SlingJakartaHttpServletRequest request,
-            JakartaPostResponse response,
-            List<Modification> changes) throws PersistenceException;
+    protected abstract void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
+            throws PersistenceException;
 
     /**
      * Get the versioning configuration.
@@ -219,7 +238,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      */
     protected VersioningConfiguration getVersioningConfiguration(final SlingJakartaHttpServletRequest request) {
         VersioningConfiguration versionableConfiguration =
-            (VersioningConfiguration) request.getAttribute(VersioningConfiguration.class.getName());
+                (VersioningConfiguration) request.getAttribute(VersioningConfiguration.class.getName());
         return versionableConfiguration != null ? versionableConfiguration : new VersioningConfiguration();
     }
 
@@ -238,7 +257,8 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @return {@code true} If committing be skipped
      */
     private boolean isSkipSessionHandling(SlingJakartaHttpServletRequest request) {
-        return Boolean.parseBoolean((String) request.getAttribute(SlingPostConstants.ATTR_SKIP_SESSION_HANDLING)) == true;
+        return Boolean.parseBoolean((String) request.getAttribute(SlingPostConstants.ATTR_SKIP_SESSION_HANDLING))
+                == true;
     }
 
     /**
@@ -263,8 +283,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @return The iterator of resources listed in the parameter or
      *         <code>null</code> if the parameter is not set in the request.
      */
-    protected Iterator<Resource> getApplyToResources(
-            final SlingJakartaHttpServletRequest request) {
+    protected Iterator<Resource> getApplyToResources(final SlingJakartaHttpServletRequest request) {
 
         final String[] applyTo = request.getParameterValues(SlingPostConstants.RP_APPLY_TO);
         if (applyTo == null) {
@@ -282,8 +301,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @param path the path to externalize
      * @return the url
      */
-    protected final String externalizePath(final SlingJakartaHttpServletRequest request,
-            final String path) {
+    protected final String externalizePath(final SlingJakartaHttpServletRequest request, final String path) {
         StringBuilder ret = new StringBuilder();
         ret.append(SlingRequestPaths.getContextPath(request));
         ret.append(request.getResourceResolver().map(path));
@@ -312,7 +330,6 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
         return request.getResource().getPath();
     }
 
-
     /**
      * Orders the given resource according to the specified command. The following
      * syntax is supported: &lt;xmp&gt; | first | before all child nodes | before A |
@@ -324,9 +341,9 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
      * @param changes the list of modifications
      * @throws PersistenceException in case the operation is not successful
      */
-    protected void orderResource(final SlingJakartaHttpServletRequest request,
-            final Resource resource,
-            final List<Modification> changes) throws PersistenceException {
+    protected void orderResource(
+            final SlingJakartaHttpServletRequest request, final Resource resource, final List<Modification> changes)
+            throws PersistenceException {
 
         final String command = request.getParameter(SlingPostConstants.RP_ORDER);
         if (command == null || command.length() == 0) {
@@ -388,8 +405,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
                     newPos--;
                 }
             } catch (NumberFormatException e) {
-                throw new IllegalArgumentException(
-                    "provided node ordering command is invalid: " + command);
+                throw new IllegalArgumentException("provided node ordering command is invalid: " + command);
             }
         }
 
@@ -403,8 +419,7 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
                 log.debug("Resource {} ordered '{}'", resource.getPath(), command);
             }
         } else {
-            throw new IllegalArgumentException(
-                "provided resource ordering command is invalid: " + command);
+            throw new IllegalArgumentException("provided resource ordering command is invalid: " + command);
         }
     }
 
@@ -452,41 +467,41 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
         }
 
         private Resource seek() {
-        	if (resourceIterator != null) {
-        		if (resourceIterator.hasNext()) {
-            		//return the next resource in the iterator
-        			Resource res = resourceIterator.next();
-        			return res;
+            if (resourceIterator != null) {
+                if (resourceIterator.hasNext()) {
+                    // return the next resource in the iterator
+                    Resource res = resourceIterator.next();
+                    return res;
                 }
-    			resourceIterator = null;
-        	}
+                resourceIterator = null;
+            }
             while (pathIndex < paths.length) {
                 String path = paths[pathIndex];
                 pathIndex++;
 
-                //SLING-2415 - support wildcard as the last segment of the applyTo path
+                // SLING-2415 - support wildcard as the last segment of the applyTo path
                 if (path.endsWith("*")) {
-                	if (path.length() == 1) {
-                		resourceIterator = baseResource.listChildren();
-                	} else if (path.endsWith("/*")) {
-                    	path = path.substring(0, path.length() - 2);
-                    	if (path.length() == 0) {
-                    		resourceIterator = baseResource.listChildren();
-                    	} else {
-                        	Resource res = resolver.getResource(baseResource, path);
+                    if (path.length() == 1) {
+                        resourceIterator = baseResource.listChildren();
+                    } else if (path.endsWith("/*")) {
+                        path = path.substring(0, path.length() - 2);
+                        if (path.length() == 0) {
+                            resourceIterator = baseResource.listChildren();
+                        } else {
+                            Resource res = resolver.getResource(baseResource, path);
                             if (res != null) {
-                            	resourceIterator = res.listChildren();
+                                resourceIterator = res.listChildren();
                             }
-                    	}
+                        }
                     }
-                	if (resourceIterator != null) {
-                		//return the first resource in the iterator
-                		if (resourceIterator.hasNext()) {
-                			Resource res = resourceIterator.next();
-                			return res;
-                		}
+                    if (resourceIterator != null) {
+                        // return the first resource in the iterator
+                        if (resourceIterator.hasNext()) {
+                            Resource res = resourceIterator.next();
+                            return res;
+                        }
                         resourceIterator = null;
-                	}
+                    }
                 } else {
                     Resource res = resolver.getResource(baseResource, path);
                     if (res != null) {
@@ -499,4 +514,4 @@ public abstract class AbstractPostOperation implements JakartaPostOperation {
             return null;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckinOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckinOperation.java
index 9bed313..682473f 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckinOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckinOperation.java
@@ -1,28 +1,30 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+
 import java.util.Iterator;
 import java.util.List;
 
-import javax.jcr.Node;
-import javax.jcr.RepositoryException;
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
@@ -38,7 +40,8 @@ import org.apache.sling.servlets.post.Modification;
 public class CheckinOperation extends AbstractPostOperation {
 
     @Override
-    protected void doRun(SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
+    protected void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
             throws PersistenceException {
         try {
             Iterator<Resource> res = getApplyToResources(request);
@@ -47,8 +50,8 @@ public class CheckinOperation extends AbstractPostOperation {
                 Resource resource = request.getResource();
                 Node node = resource.adaptTo(Node.class);
                 if (node == null) {
-                    response.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                        "Missing source " + resource + " for checkout");
+                    response.setStatus(
+                            HttpServletResponse.SC_NOT_FOUND, "Missing source " + resource + " for checkout");
                     return;
                 }
 
@@ -65,9 +68,8 @@ public class CheckinOperation extends AbstractPostOperation {
                         changes.add(Modification.onCheckin(resource.getPath()));
                     }
                 }
-
             }
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckoutOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckoutOperation.java
index a16d08d..a950898 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckoutOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/CheckoutOperation.java
@@ -1,28 +1,30 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+
 import java.util.Iterator;
 import java.util.List;
 
-import javax.jcr.Node;
-import javax.jcr.RepositoryException;
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
@@ -37,7 +39,8 @@ import org.apache.sling.servlets.post.Modification;
  */
 public class CheckoutOperation extends AbstractPostOperation {
     @Override
-    protected void doRun(SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
+    protected void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
             throws PersistenceException {
         try {
             Iterator<Resource> res = getApplyToResources(request);
@@ -46,8 +49,8 @@ public class CheckoutOperation extends AbstractPostOperation {
                 Resource resource = request.getResource();
                 Node node = resource.adaptTo(Node.class);
                 if (node == null) {
-                    response.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                        "Missing source " + resource + " for checkout");
+                    response.setStatus(
+                            HttpServletResponse.SC_NOT_FOUND, "Missing source " + resource + " for checkout");
                     return;
                 }
 
@@ -64,9 +67,8 @@ public class CheckoutOperation extends AbstractPostOperation {
                         changes.add(Modification.onCheckout(resource.getPath()));
                     }
                 }
-
             }
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
index a921776..6e3d3dd 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/CopyOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
@@ -37,17 +39,18 @@ public class CopyOperation extends AbstractCopyMoveOperation {
     }
 
     @Override
-    protected Resource execute(final List<Modification> changes,
+    protected Resource execute(
+            final List<Modification> changes,
             final Resource source,
             final String destParent,
             final String destName,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
         final Resource parentRsrc = source.getResourceResolver().getResource(destParent);
         // check if the item is backed by JCR
         final Object item = this.jcrSupport.getItem(source);
         final Object parentItem = this.jcrSupport.getNode(parentRsrc);
-        if ( item == null || parentItem == null ) {
+        if (item == null || parentItem == null) {
             // no JCR, copy via resources
             final Resource result = copy(source, parentRsrc);
             changes.add(Modification.onCopied(source.getPath(), result.getPath()));
@@ -63,11 +66,10 @@ public class CopyOperation extends AbstractCopyMoveOperation {
     /**
      * Copy the source as a child resource to the parent
      */
-    private Resource copy(final Resource source, final Resource dest)
-    throws PersistenceException {
+    private Resource copy(final Resource source, final Resource dest) throws PersistenceException {
         final ValueMap vm = source.getValueMap();
         final Resource result = source.getResourceResolver().create(dest, source.getName(), vm);
-        for(final Resource c : source.getChildren()) {
+        for (final Resource c : source.getChildren()) {
             copy(c, result);
         }
         return result;
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/DeleteOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/DeleteOperation.java
index c6a7dda..7ea4e27 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/DeleteOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/DeleteOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
@@ -20,7 +22,6 @@ import java.util.Iterator;
 import java.util.List;
 
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.request.RequestPathInfo;
 import org.apache.sling.api.resource.PersistenceException;
@@ -48,14 +49,16 @@ public class DeleteOperation extends AbstractPostOperation {
     }
 
     @Override
-    protected void doRun(final SlingJakartaHttpServletRequest request,
-            final JakartaPostResponse response, final List<Modification> changes)
-    throws PersistenceException {
+    protected void doRun(
+            final SlingJakartaHttpServletRequest request,
+            final JakartaPostResponse response,
+            final List<Modification> changes)
+            throws PersistenceException {
 
         // SLING-3203: selectors, extension and suffix make no sense here and
         // might lead to deleting other resources than the one the user means.
         final RequestPathInfo rpi = request.getRequestPathInfo();
-        if( (rpi.getSelectors() != null && rpi.getSelectors().length > 0)
+        if ((rpi.getSelectors() != null && rpi.getSelectors().length > 0)
                 || (rpi.getExtension() != null && rpi.getExtension().length() > 0)
                 || (rpi.getSuffix() != null && rpi.getSuffix().length() > 0)) {
             response.setStatus(
@@ -69,15 +72,12 @@ public class DeleteOperation extends AbstractPostOperation {
         final Iterator<Resource> res = getApplyToResources(request);
         if (res == null) {
             final Resource resource = request.getResource();
-            deleteResource(resource, changes, versioningConfiguration,
-                deleteChunks);
+            deleteResource(resource, changes, versioningConfiguration, deleteChunks);
         } else {
             while (res.hasNext()) {
                 final Resource resource = res.next();
-                deleteResource(resource, changes, versioningConfiguration,
-                    deleteChunks);
+                deleteResource(resource, changes, versioningConfiguration, deleteChunks);
             }
-
         }
     }
 
@@ -86,16 +86,16 @@ public class DeleteOperation extends AbstractPostOperation {
      * {@link DeleteOperation#isDeleteChunkRequest(SlingJakartaHttpServletRequest)} is
      * true otherwise delete resource.
      */
-    private void deleteResource(final Resource resource,
+    private void deleteResource(
+            final Resource resource,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration,
             final boolean deleteChunks)
-    throws PersistenceException {
+            throws PersistenceException {
         if (deleteChunks) {
             uploadHandler.deleteChunks(resource);
         } else {
-            this.jcrSupport.checkoutIfNecessary(resource.getParent(), changes,
-                versioningConfiguration);
+            this.jcrSupport.checkoutIfNecessary(resource.getParent(), changes, versioningConfiguration);
         }
 
         resource.getResourceResolver().delete(resource);
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
index 4828b28..a129f3f 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
@@ -1,31 +1,33 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.List;
 import java.util.Map;
 
-import javax.jcr.Node;
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
 import jakarta.servlet.http.HttpServletResponse;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.request.RequestParameter;
 import org.apache.sling.api.resource.PersistenceException;
@@ -56,31 +58,30 @@ public class ImportOperation extends AbstractCreateOperation {
     }
 
     public void unsetContentImporter(Object importer) {
-        if ( this.contentImporter == importer ) {
+        if (this.contentImporter == importer) {
             this.contentImporter = null;
         }
     }
 
     private String getRequestParamAsString(SlingJakartaHttpServletRequest request, String key) {
-    	RequestParameter requestParameter = request.getRequestParameter(key);
-    	if (requestParameter == null) {
-    		return null;
-    	}
-    	return requestParameter.getString();
+        RequestParameter requestParameter = request.getRequestParameter(key);
+        if (requestParameter == null) {
+            return null;
+        }
+        return requestParameter.getString();
     }
 
     @Override
-    protected void doRun(SlingJakartaHttpServletRequest request, JakartaPostResponse response, final List<Modification> changes)
+    protected void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, final List<Modification> changes)
             throws PersistenceException {
         try {
             Object importer = contentImporter;
             if (importer == null) {
-                response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
-                        "Missing content importer for import");
+                response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Missing content importer for import");
                 return;
             }
-            Map<String, RequestProperty> reqProperties = collectContent(request,
-                 response);
+            Map<String, RequestProperty> reqProperties = collectContent(request, response);
 
             VersioningConfiguration versioningConfiguration = getVersioningConfiguration(request);
 
@@ -93,36 +94,39 @@ public class ImportOperation extends AbstractCreateOperation {
             Node node = null;
             try {
                 node = (Node) session.getItem(path);
-            } catch ( RepositoryException e ) {
-                log.warn(e.getMessage(),e);
+            } catch (RepositoryException e) {
+                log.warn(e.getMessage(), e);
                 // was not able to resolve the node
-            } catch ( ClassCastException e) {
-                log.warn(e.getMessage(),e);
+            } catch (ClassCastException e) {
+                log.warn(e.getMessage(), e);
                 // it was not a node
             }
             if (node == null) {
 
-                response.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                        "Missing target node " + path + " for import");
+                response.setStatus(HttpServletResponse.SC_NOT_FOUND, "Missing target node " + path + " for import");
                 return;
             }
 
             String contentType = getRequestParamAsString(request, SlingPostConstants.RP_CONTENT_TYPE);
             if (contentType == null) {
-                response.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED,
-                "Required :contentType parameter is missing");
+                response.setStatus(
+                        HttpServletResponse.SC_PRECONDITION_FAILED, "Required :contentType parameter is missing");
                 return;
             }
 
-            //import options passed as request parameters.
-            final boolean replace = "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_REPLACE));
-            final boolean replaceProperties = "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_REPLACE_PROPERTIES));
-            final boolean checkin = "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_CHECKIN));
-            final boolean autoCheckout = "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_AUTO_CHECKOUT));
+            // import options passed as request parameters.
+            final boolean replace =
+                    "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_REPLACE));
+            final boolean replaceProperties =
+                    "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_REPLACE_PROPERTIES));
+            final boolean checkin =
+                    "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_CHECKIN));
+            final boolean autoCheckout =
+                    "true".equalsIgnoreCase(getRequestParamAsString(request, SlingPostConstants.RP_AUTO_CHECKOUT));
 
             String basePath = getResourcePath(request);
             if (basePath.endsWith("/")) {
-                //remove the trailing slash
+                // remove the trailing slash
                 basePath = basePath.substring(0, basePath.length() - 1);
             }
 
@@ -130,7 +134,7 @@ public class ImportOperation extends AbstractCreateOperation {
             response.setCreateRequest(true);
 
             final String targetName;
-            //check if a name was posted to use as the name of the imported root node
+            // check if a name was posted to use as the name of the imported root node
             if (getRequestParamAsString(request, SlingPostConstants.RP_NODE_NAME) != null) {
                 // exact name
                 targetName = getRequestParamAsString(request, SlingPostConstants.RP_NODE_NAME);
@@ -139,9 +143,8 @@ public class ImportOperation extends AbstractCreateOperation {
                         response.setCreateRequest(false);
                     } else {
                         response.setStatus(
-                            HttpServletResponse.SC_PRECONDITION_FAILED,
-                            "Cannot import " + path + "/" + targetName
-                                + ": node exists");
+                                HttpServletResponse.SC_PRECONDITION_FAILED,
+                                "Cannot import " + path + "/" + targetName + ": node exists");
                         return;
                     }
                 }
@@ -168,88 +171,91 @@ public class ImportOperation extends AbstractCreateOperation {
                 }
 
                 if (contentStream == null) {
-                    response.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED,
-                            "Missing content for import");
+                    response.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED, "Missing content for import");
                     return;
                 } else {
-                    ((ContentImporter)importer).importContent(node, contentRootName, contentStream,
-                            new ImportOptions() {
-
-                                @Override
-                                public boolean isCheckin() {
-                                    return checkin;
-                                }
-
-                                @Override
-                                public boolean isAutoCheckout() {
-                                    return autoCheckout;
-                                }
-
-                                @Override
-                                public boolean isIgnoredImportProvider(
-                                        String extension) {
-                                    // this probably isn't important in this context.
-                                    return false;
-                                }
-
-                                @Override
-                                public boolean isOverwrite() {
-                                    return replace;
-                                }
-
-                                /* (non-Javadoc)
-                                 * @see org.apache.sling.jcr.contentloader.ImportOptions#isPropertyOverwrite()
-                                 */
-                                @Override
-                                public boolean isPropertyOverwrite() {
-                                    return replaceProperties;
-                                }
-                            },
-                            new ContentImportListener() {
-
-                                @Override
-                                public void onReorder(String orderedPath, String beforeSibbling) {
-                                    changes.add(Modification.onOrder(orderedPath, beforeSibbling));
-                                }
-
-                                @Override
-                                public void onMove(String srcPath, String destPath) {
-                                    changes.add(Modification.onMoved(srcPath, destPath));
-                                }
-
-                                @Override
-                                public void onModify(String srcPath) {
-                                    changes.add(Modification.onModified(srcPath));
-                                }
-
-                                @Override
-                                public void onDelete(String srcPath) {
-                                    changes.add(Modification.onDeleted(srcPath));
-                                }
-
-                                @Override
-                                public void onCreate(String srcPath) {
-                                    changes.add(Modification.onCreated(srcPath));
-                                }
-
-                                @Override
-                                public void onCopy(String srcPath, String destPath) {
-                                    changes.add(Modification.onCopied(srcPath, destPath));
-                                }
-
-                                @Override
-                                public void onCheckin(String srcPath) {
-                                    changes.add(Modification.onCheckin(srcPath));
-                                }
-                                @Override
-                                public void onCheckout(String srcPath) {
-                                    changes.add(Modification.onCheckout(srcPath));
-                                }
-                            });
+                    ((ContentImporter) importer)
+                            .importContent(
+                                    node,
+                                    contentRootName,
+                                    contentStream,
+                                    new ImportOptions() {
+
+                                        @Override
+                                        public boolean isCheckin() {
+                                            return checkin;
+                                        }
+
+                                        @Override
+                                        public boolean isAutoCheckout() {
+                                            return autoCheckout;
+                                        }
+
+                                        @Override
+                                        public boolean isIgnoredImportProvider(String extension) {
+                                            // this probably isn't important in this context.
+                                            return false;
+                                        }
+
+                                        @Override
+                                        public boolean isOverwrite() {
+                                            return replace;
+                                        }
+
+                                        /* (non-Javadoc)
+                                         * @see org.apache.sling.jcr.contentloader.ImportOptions#isPropertyOverwrite()
+                                         */
+                                        @Override
+                                        public boolean isPropertyOverwrite() {
+                                            return replaceProperties;
+                                        }
+                                    },
+                                    new ContentImportListener() {
+
+                                        @Override
+                                        public void onReorder(String orderedPath, String beforeSibbling) {
+                                            changes.add(Modification.onOrder(orderedPath, beforeSibbling));
+                                        }
+
+                                        @Override
+                                        public void onMove(String srcPath, String destPath) {
+                                            changes.add(Modification.onMoved(srcPath, destPath));
+                                        }
+
+                                        @Override
+                                        public void onModify(String srcPath) {
+                                            changes.add(Modification.onModified(srcPath));
+                                        }
+
+                                        @Override
+                                        public void onDelete(String srcPath) {
+                                            changes.add(Modification.onDeleted(srcPath));
+                                        }
+
+                                        @Override
+                                        public void onCreate(String srcPath) {
+                                            changes.add(Modification.onCreated(srcPath));
+                                        }
+
+                                        @Override
+                                        public void onCopy(String srcPath, String destPath) {
+                                            changes.add(Modification.onCopied(srcPath, destPath));
+                                        }
+
+                                        @Override
+                                        public void onCheckin(String srcPath) {
+                                            changes.add(Modification.onCheckin(srcPath));
+                                        }
+
+                                        @Override
+                                        public void onCheckout(String srcPath) {
+                                            changes.add(Modification.onCheckout(srcPath));
+                                        }
+                                    });
                 }
 
                 if (!changes.isEmpty()) {
-                    //fill in the data for the response report
+                    // fill in the data for the response report
                     Modification modification = changes.get(0);
                     if (modification.getType() == ModificationType.CREATE) {
                         String importedPath = modification.getSource();
@@ -265,10 +271,8 @@ public class ImportOperation extends AbstractCreateOperation {
             } catch (IOException e) {
                 throw new PersistenceException(e.getMessage(), e);
             }
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
-
-
     }
-}
\ No newline at end of file
+}
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
index c0805f7..c672f88 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
@@ -22,7 +22,6 @@ import java.util.List;
 import java.util.Map;
 
 import jakarta.servlet.ServletContext;
-
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.sling.api.SlingException;
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
@@ -69,10 +68,11 @@ public class ModifyOperation extends AbstractCreateOperation {
     }
 
     @Override
-    protected void doRun(final SlingJakartaHttpServletRequest request,
-                    final JakartaPostResponse response,
-                    final List<Modification> changes)
-    throws PersistenceException {
+    protected void doRun(
+            final SlingJakartaHttpServletRequest request,
+            final JakartaPostResponse response,
+            final List<Modification> changes)
+            throws PersistenceException {
         final Map<String, RequestProperty> reqProperties = collectContent(request, response);
 
         final VersioningConfiguration versioningConfiguration = getVersioningConfiguration(request);
@@ -124,7 +124,6 @@ public class ModifyOperation extends AbstractCreateOperation {
 
             // and preset the path buffer with the resource path
             rootPathBuf.append(currentResource.getPath());
-
         }
 
         // check for extensions or create suffix in the suffix
@@ -133,20 +132,17 @@ public class ModifyOperation extends AbstractCreateOperation {
 
             // check whether it is a create request (trailing /)
             if (suffix.endsWith(SlingPostConstants.DEFAULT_CREATE_SUFFIX)) {
-                suffix = suffix.substring(0, suffix.length()
-                    - SlingPostConstants.DEFAULT_CREATE_SUFFIX.length());
+                suffix = suffix.substring(0, suffix.length() - SlingPostConstants.DEFAULT_CREATE_SUFFIX.length());
                 doGenerateName = true;
 
                 // or with the star suffix /*
             } else if (suffix.endsWith(SlingPostConstants.STAR_CREATE_SUFFIX)) {
-                suffix = suffix.substring(0, suffix.length()
-                    - SlingPostConstants.STAR_CREATE_SUFFIX.length());
+                suffix = suffix.substring(0, suffix.length() - SlingPostConstants.STAR_CREATE_SUFFIX.length());
                 doGenerateName = true;
             }
 
             // append the remains of the suffix to the path buffer
             rootPathBuf.append(suffix);
-
         }
 
         String path = rootPathBuf.toString();
@@ -167,15 +163,16 @@ public class ModifyOperation extends AbstractCreateOperation {
      * request properties to the locations indicated by the resource properties.
      * @param checkedOutNodes
      */
-    private void processMoves(final ResourceResolver resolver,
-            Map<String, RequestProperty> reqProperties, List<Modification> changes,
+    private void processMoves(
+            final ResourceResolver resolver,
+            Map<String, RequestProperty> reqProperties,
+            List<Modification> changes,
             VersioningConfiguration versioningConfiguration)
             throws PersistenceException {
 
         for (RequestProperty property : reqProperties.values()) {
             if (property.hasRepositoryMoveSource()) {
-                processMovesCopiesInternal(property, true, resolver,
-                    reqProperties, changes, versioningConfiguration);
+                processMovesCopiesInternal(property, true, resolver, reqProperties, changes, versioningConfiguration);
             }
         }
     }
@@ -185,15 +182,16 @@ public class ModifyOperation extends AbstractCreateOperation {
      * request properties to the locations indicated by the resource properties.
      * @param checkedOutNodes
      */
-    private void processCopies(final ResourceResolver resolver,
-            Map<String, RequestProperty> reqProperties, List<Modification> changes,
+    private void processCopies(
+            final ResourceResolver resolver,
+            Map<String, RequestProperty> reqProperties,
+            List<Modification> changes,
             VersioningConfiguration versioningConfiguration)
             throws PersistenceException {
 
         for (RequestProperty property : reqProperties.values()) {
             if (property.hasRepositoryCopySource()) {
-                processMovesCopiesInternal(property, false, resolver,
-                    reqProperties, changes, versioningConfiguration);
+                processMovesCopiesInternal(property, false, resolver, reqProperties, changes, versioningConfiguration);
             }
         }
     }
@@ -221,9 +219,11 @@ public class ModifyOperation extends AbstractCreateOperation {
      * @throws PersistenceException May be thrown if an error occurs.
      */
     private void processMovesCopiesInternal(
-                    RequestProperty property,
-            boolean isMove, final ResourceResolver resolver,
-            Map<String, RequestProperty> reqProperties, List<Modification> changes,
+            RequestProperty property,
+            boolean isMove,
+            final ResourceResolver resolver,
+            Map<String, RequestProperty> reqProperties,
+            List<Modification> changes,
             VersioningConfiguration versioningConfiguration)
             throws PersistenceException {
 
@@ -231,7 +231,7 @@ public class ModifyOperation extends AbstractCreateOperation {
         String source = property.getRepositorySource();
 
         // only continue here, if the source really exists
-        if (resolver.getResource(source) != null ) {
+        if (resolver.getResource(source) != null) {
 
             // if the destination item already exists, remove it
             // first, otherwise ensure the parent location
@@ -242,8 +242,8 @@ public class ModifyOperation extends AbstractCreateOperation {
                 resolver.delete(resolver.getResource(propPath));
                 changes.add(Modification.onDeleted(propPath));
             } else {
-                Resource parent = deepGetOrCreateResource(resolver, property.getParentPath(),
-                    reqProperties, changes, versioningConfiguration);
+                Resource parent = deepGetOrCreateResource(
+                        resolver, property.getParentPath(), reqProperties, changes, versioningConfiguration);
                 this.jcrSupport.checkoutIfNecessary(parent, changes, versioningConfiguration);
             }
 
@@ -252,23 +252,25 @@ public class ModifyOperation extends AbstractCreateOperation {
             Resource sourceRsrc = resolver.getResource(source);
             final Object sourceItem = this.jcrSupport.getItem(sourceRsrc);
             final Object destItem = this.jcrSupport.getItem(resolver.getResource(property.getParentPath()));
-            if ( sourceItem != null && destItem != null ) {
-                if ( this.jcrSupport.isNode(sourceRsrc) ) {
-                    if ( isMove ) {
+            if (sourceItem != null && destItem != null) {
+                if (this.jcrSupport.isNode(sourceRsrc)) {
+                    if (isMove) {
                         this.jcrSupport.checkoutIfNecessary(sourceRsrc.getParent(), changes, versioningConfiguration);
                         this.jcrSupport.move(sourceItem, destItem, ResourceUtil.getName(propPath));
                     } else {
-                        this.jcrSupport.checkoutIfNecessary(resolver.getResource(property.getParentPath()), changes, versioningConfiguration);
+                        this.jcrSupport.checkoutIfNecessary(
+                                resolver.getResource(property.getParentPath()), changes, versioningConfiguration);
                         this.jcrSupport.copy(sourceItem, destItem, property.getName());
                     }
                 } else {
                     // property: move manually
-                    this.jcrSupport.checkoutIfNecessary(resolver.getResource(property.getParentPath()), changes, versioningConfiguration);
+                    this.jcrSupport.checkoutIfNecessary(
+                            resolver.getResource(property.getParentPath()), changes, versioningConfiguration);
                     // create destination property
                     this.jcrSupport.copy(sourceItem, destItem, ResourceUtil.getName(source));
 
                     // remove source property (if not just copying)
-                    if ( isMove ) {
+                    if (isMove) {
                         this.jcrSupport.checkoutIfNecessary(sourceRsrc.getParent(), changes, versioningConfiguration);
                         resolver.delete(sourceRsrc);
                     }
@@ -301,34 +303,35 @@ public class ModifyOperation extends AbstractCreateOperation {
      * @throws PersistenceException Is thrown if an error occurs checking or
      *             removing properties.
      */
-    private void processDeletes(final ResourceResolver resolver,
+    private void processDeletes(
+            final ResourceResolver resolver,
             final Map<String, RequestProperty> reqProperties,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
 
         for (final RequestProperty property : reqProperties.values()) {
 
             if (property.isDelete()) {
                 final Resource parent = resolver.getResource(property.getParentPath());
-                if ( parent == null ) {
+                if (parent == null) {
                     continue;
                 }
                 this.jcrSupport.checkoutIfNecessary(parent, changes, versioningConfiguration);
 
                 final ValueMap vm = parent.adaptTo(ModifiableValueMap.class);
-                if ( vm == null ) {
+                if (vm == null) {
                     throw new PersistenceException("Resource '" + parent.getPath() + "' is not modifiable.");
                 }
-                if ( vm.containsKey(property.getName()) ) {
-                    if ( JcrConstants.JCR_MIXINTYPES.equals(property.getName()) ) {
+                if (vm.containsKey(property.getName())) {
+                    if (JcrConstants.JCR_MIXINTYPES.equals(property.getName())) {
                         vm.put(JcrConstants.JCR_MIXINTYPES, new String[0]);
                     } else {
                         vm.remove(property.getName());
                     }
                 } else {
                     final Resource childRsrc = resolver.getResource(parent.getPath() + '/' + property.getName());
-                    if ( childRsrc != null ) {
+                    if (childRsrc != null) {
                         resolver.delete(childRsrc);
                     }
                 }
@@ -336,7 +339,6 @@ public class ModifyOperation extends AbstractCreateOperation {
                 changes.add(Modification.onDeleted(property.getPath()));
             }
         }
-
     }
 
     /**
@@ -344,25 +346,26 @@ public class ModifyOperation extends AbstractCreateOperation {
      *
      * @throws PersistenceException if a persistence error occurs
      */
-    private void writeContent(final ResourceResolver resolver,
+    private void writeContent(
+            final ResourceResolver resolver,
             final Map<String, RequestProperty> reqProperties,
             final List<Modification> changes,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
 
-        final SlingPropertyValueHandler propHandler = new SlingPropertyValueHandler(
-            dateParser, this.jcrSupport, changes);
+        final SlingPropertyValueHandler propHandler =
+                new SlingPropertyValueHandler(dateParser, this.jcrSupport, changes);
 
         for (final RequestProperty prop : reqProperties.values()) {
             if (prop.hasValues()) {
-                final Resource parent = deepGetOrCreateResource(resolver,
-                    prop.getParentPath(), reqProperties, changes, versioningConfiguration);
+                final Resource parent = deepGetOrCreateResource(
+                        resolver, prop.getParentPath(), reqProperties, changes, versioningConfiguration);
 
                 this.jcrSupport.checkoutIfNecessary(parent, changes, versioningConfiguration);
 
                 // skip jcr special properties
                 if (prop.getName().equals(JcrConstants.JCR_PRIMARYTYPE)
-                    || prop.getName().equals(JcrConstants.JCR_MIXINTYPES)) {
+                        || prop.getName().equals(JcrConstants.JCR_MIXINTYPES)) {
                     continue;
                 }
 
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java
index d315777..ee5b682 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
@@ -37,19 +39,20 @@ public class MoveOperation extends AbstractCopyMoveOperation {
     }
 
     @Override
-    protected Resource execute(final List<Modification> changes,
+    protected Resource execute(
+            final List<Modification> changes,
             final Resource source,
             final String destParent,
             String destName,
             final VersioningConfiguration versioningConfiguration)
-    throws PersistenceException {
+            throws PersistenceException {
         if (destName == null) {
             destName = source.getName();
         }
 
         final Resource destParentRsrc = source.getResourceResolver().getResource(destParent);
         final Resource dest = destParentRsrc.getChild(destName);
-        if (dest != null ) {
+        if (dest != null) {
             source.getResourceResolver().delete(dest);
         }
 
@@ -57,14 +60,14 @@ public class MoveOperation extends AbstractCopyMoveOperation {
         final Object item = this.jcrSupport.getItem(source);
         final Object target = this.jcrSupport.getNode(destParentRsrc);
 
-        if (item == null || target == null ) {
+        if (item == null || target == null) {
             move(source, destParentRsrc);
         } else {
             this.jcrSupport.checkoutIfNecessary(source.getParent(), changes, versioningConfiguration);
             this.jcrSupport.move(item, target, destName);
         }
         final Resource result = destParentRsrc.getChild(destName);
-        if ( result != null ) {
+        if (result != null) {
             changes.add(Modification.onMoved(source.getPath(), result.getPath()));
         }
         return result;
@@ -73,12 +76,11 @@ public class MoveOperation extends AbstractCopyMoveOperation {
     /**
      * Move the source as a child resource to the parent
      */
-    private void move(final Resource source, final Resource dest)
-    throws PersistenceException {
+    private void move(final Resource source, final Resource dest) throws PersistenceException {
         // first copy
         final ValueMap vm = source.getValueMap();
         final Resource result = source.getResourceResolver().create(dest, source.getName(), vm);
-        for(final Resource c : source.getChildren()) {
+        for (final Resource c : source.getChildren()) {
             move(c, result);
         }
         // then delete
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/NopOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/NopOperation.java
index 352a95c..ecad8b6 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/NopOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/NopOperation.java
@@ -34,8 +34,11 @@ import org.apache.sling.servlets.post.exceptions.TemporaryPersistenceException;
 public class NopOperation implements JakartaPostOperation {
 
     @Override
-    public void run(SlingJakartaHttpServletRequest request, JakartaPostResponse response,
-            SlingJakartaPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
+    public void run(
+            SlingJakartaHttpServletRequest request,
+            JakartaPostResponse response,
+            SlingJakartaPostProcessor[] processors)
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException {
 
         // get the :nopstatus parameter for a specific code
         int status = SlingPostConstants.NOPSTATUS_VALUE_DEFAULT;
@@ -53,5 +56,4 @@ public class NopOperation implements JakartaPostOperation {
 
         response.setStatus(status, "Null Operation Status: " + status);
     }
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/RestoreOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/RestoreOperation.java
index d3913f5..14031ba 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/RestoreOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/RestoreOperation.java
@@ -1,31 +1,33 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.operations;
 
-import java.util.Iterator;
-import java.util.List;
-
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 import javax.jcr.version.Version;
 import javax.jcr.version.VersionHistory;
 import javax.jcr.version.VersionManager;
-import jakarta.servlet.http.HttpServletResponse;
 
+import java.util.Iterator;
+import java.util.List;
+
+import jakarta.servlet.http.HttpServletResponse;
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
@@ -42,7 +44,8 @@ import org.apache.sling.servlets.post.SlingPostConstants;
 public class RestoreOperation extends AbstractPostOperation {
 
     @Override
-    protected void doRun(SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
+    protected void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
             throws PersistenceException {
         try {
             final String version = request.getParameter(SlingPostConstants.RP_VERSION);
@@ -57,8 +60,7 @@ public class RestoreOperation extends AbstractPostOperation {
                 Resource resource = request.getResource();
                 Node node = resource.adaptTo(Node.class);
                 if (node == null) {
-                    response.setStatus(HttpServletResponse.SC_NOT_FOUND,
-                        "Missing source " + resource + " for restore");
+                    response.setStatus(HttpServletResponse.SC_NOT_FOUND, "Missing source " + resource + " for restore");
                     return;
                 }
                 restore(node, version, removeExisting);
@@ -73,13 +75,12 @@ public class RestoreOperation extends AbstractPostOperation {
                     }
                 }
             }
-        } catch ( final RepositoryException re) {
+        } catch (final RepositoryException re) {
             throw new PersistenceException(re.getMessage(), re);
         }
     }
 
-    private void restore(Node node, String versionSpecifier, boolean removeExisting)
-            throws RepositoryException {
+    private void restore(Node node, String versionSpecifier, boolean removeExisting) throws RepositoryException {
         final VersionManager vm = node.getSession().getWorkspace().getVersionManager();
         final VersionHistory history = vm.getVersionHistory(node.getPath());
         final Version version;
@@ -88,8 +89,7 @@ public class RestoreOperation extends AbstractPostOperation {
         } else if (history.hasNode(versionSpecifier)) {
             version = history.getVersion(versionSpecifier);
         } else {
-            throw new IllegalArgumentException("Unable to process restore. Invalid version: "
-                    + versionSpecifier);
+            throw new IllegalArgumentException("Unable to process restore. Invalid version: " + versionSpecifier);
         }
         vm.restore(version, removeExisting);
     }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/operations/StreamedUploadOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/operations/StreamedUploadOperation.java
index fcc75c1..6ef1b58 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/operations/StreamedUploadOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/operations/StreamedUploadOperation.java
@@ -1,20 +1,21 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.operations;
 
 import java.io.IOException;
@@ -26,7 +27,6 @@ import java.util.Map;
 
 import jakarta.servlet.ServletContext;
 import jakarta.servlet.http.Part;
-
 import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.util.Text;
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
@@ -62,7 +62,6 @@ public class StreamedUploadOperation extends AbstractPostOperation {
         this.servletContext = servletContext;
     }
 
-
     /**
      * Check the request and return true if there is a parts iterator attribute present. This attribute
      * will have been put there by the Sling Engine ParameterSupport class. If its not present, the request
@@ -75,8 +74,9 @@ public class StreamedUploadOperation extends AbstractPostOperation {
     }
 
     @Override
-    protected void doRun(SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
-    throws PersistenceException {
+    protected void doRun(
+            SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes)
+            throws PersistenceException {
         @SuppressWarnings("unchecked")
         Iterator<Part> partsIterator = (Iterator<Part>) request.getAttribute("request-parts-iterator");
         Map<String, List<String>> formFields = new HashMap<>();
@@ -88,15 +88,16 @@ public class StreamedUploadOperation extends AbstractPostOperation {
             if (isFormField(part)) {
                 addField(formFields, name, part);
                 if (streamingBodies) {
-                    LOG.warn("Form field {} was sent after the bodies started to be streamed. " +
-                            "Will not have been available to all streamed bodies. " +
-                            "It is recommended to send all form fields before streamed bodies in the POST ", name);
+                    LOG.warn(
+                            "Form field {} was sent after the bodies started to be streamed. "
+                                    + "Will not have been available to all streamed bodies. "
+                                    + "It is recommended to send all form fields before streamed bodies in the POST ",
+                            name);
                 }
             } else {
                 streamingBodies = true;
                 // process the file body and commit.
                 writeContent(request.getResourceResolver(), part, formFields, response, changes);
-
             }
         }
     }
@@ -109,18 +110,17 @@ public class StreamedUploadOperation extends AbstractPostOperation {
      */
     private void addField(Map<String, List<String>> formFields, String name, Part part) {
         List<String> values = formFields.get(name);
-        if ( values == null ) {
+        if (values == null) {
             values = new ArrayList<>();
             formFields.put(name, values);
         }
         try {
-            values.add(IOUtils.toString(part.getInputStream(),"UTF-8"));
+            values.add(IOUtils.toString(part.getInputStream(), "UTF-8"));
         } catch (IOException e) {
-            LOG.error("Failed to read form field "+name,e);
+            LOG.error("Failed to read form field " + name, e);
         }
     }
 
-
     /**
      * Write content to the resource API creating a standard JCR structure of nt:file - nt:resource - jcr:data.
      * This method will commit to the repository to force the repository to read from the input stream and write
@@ -132,17 +132,19 @@ public class StreamedUploadOperation extends AbstractPostOperation {
      * @param changes changes made to the repo.
      * @throws PersistenceException
      */
-    private void writeContent(final ResourceResolver resolver,
-                              final Part part,
-                              final Map<String, List<String>> formFields,
-                              final JakartaPostResponse response,
-                              final List<Modification> changes)
+    private void writeContent(
+            final ResourceResolver resolver,
+            final Part part,
+            final Map<String, List<String>> formFields,
+            final JakartaPostResponse response,
+            final List<Modification> changes)
             throws PersistenceException {
 
         final String path = response.getPath();
         final Resource parentResource = resolver.getResource(path);
-        if ( !resourceExists(parentResource)) {
-            throw new IllegalArgumentException("Parent resource must already exist to be able to stream upload content. Please create first ");
+        if (!resourceExists(parentResource)) {
+            throw new IllegalArgumentException(
+                    "Parent resource must already exist to be able to stream upload content. Please create first ");
         }
         String name = getUploadName(part);
         Resource fileResource = parentResource.getChild(name);
@@ -152,11 +154,9 @@ public class StreamedUploadOperation extends AbstractPostOperation {
             fileResource = parentResource.getResourceResolver().create(parentResource, name, fileProps);
         }
 
-
         StreamedChunk chunk = new StreamedChunk(part, formFields, servletContext);
         Resource result = chunk.store(fileResource, changes);
         result.getResourceResolver().commit();
-
     }
 
     /**
@@ -194,11 +194,6 @@ public class StreamedUploadOperation extends AbstractPostOperation {
      * @return
      */
     private boolean resourceExists(final Resource resource) {
-        return  (resource != null && !ResourceUtil.isSyntheticResource(resource));
+        return (resource != null && !ResourceUtil.isSyntheticResource(resource));
     }
-
-
-
-
-
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostProcessor.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostProcessor.java
index 5c36878..897e801 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostProcessor.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostProcessor.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
@@ -34,8 +36,7 @@ public class JakartaToJavaxPostProcessor implements SlingPostProcessor {
     }
 
     @Override
-    public void process(final SlingHttpServletRequest request, final List<Modification> changes)
-    throws Exception {
+    public void process(final SlingHttpServletRequest request, final List<Modification> changes) throws Exception {
         this.delegate.process(JavaxToJakartaRequestWrapper.toJakartaRequest(request), changes);
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostResponse.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostResponse.java
index 4cbdd85..37247c9 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JakartaToJavaxPostResponse.java
@@ -1,37 +1,40 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
+import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 
 import org.apache.sling.api.wrappers.JavaxToJakartaResponseWrapper;
 import org.apache.sling.servlets.post.JakartaPostResponse;
 import org.apache.sling.servlets.post.PostResponse;
 
-import javax.servlet.http.HttpServletResponse;
-
 @SuppressWarnings("deprecation")
-public class JakartaToJavaxPostResponse implements PostResponse{
+public class JakartaToJavaxPostResponse implements PostResponse {
 
     private final JakartaPostResponse delegate;
 
     public JakartaToJavaxPostResponse(final JakartaPostResponse p) {
         this.delegate = p;
     }
+
     @Override
     public Throwable getError() {
         return this.delegate.getError();
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaNodeNameGenerator.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaNodeNameGenerator.java
index 0b2ec07..b1c9013 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaNodeNameGenerator.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaNodeNameGenerator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
@@ -35,19 +37,23 @@ public class JavaxToJakartaNodeNameGenerator implements JakartaNodeNameGenerator
     }
 
     @Override
-    public String getNodeName(final SlingJakartaHttpServletRequest request,
+    public String getNodeName(
+            final SlingJakartaHttpServletRequest request,
             final String parentPath,
             final boolean requirePrefix,
             final JakartaNodeNameGenerator defaultNodeNameGenerator) {
         final NodeNameGenerator dng = new NodeNameGenerator() {
             @Override
-            public String getNodeName(final SlingHttpServletRequest internalRequest,
+            public String getNodeName(
+                    final SlingHttpServletRequest internalRequest,
                     final String internalParentPath,
                     final boolean internalRequirePrefix,
                     final NodeNameGenerator defaultInternalGenerator) {
-                return defaultNodeNameGenerator.getNodeName(request, internalParentPath, internalRequirePrefix, defaultNodeNameGenerator);
+                return defaultNodeNameGenerator.getNodeName(
+                        request, internalParentPath, internalRequirePrefix, defaultNodeNameGenerator);
             }
         };
-        return this.delegate.getNodeName(JakartaToJavaxRequestWrapper.toJavaxRequest(request), parentPath, requirePrefix, dng);
+        return this.delegate.getNodeName(
+                JakartaToJavaxRequestWrapper.toJavaxRequest(request), parentPath, requirePrefix, dng);
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostOperation.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostOperation.java
index 0c9917e..7d9351c 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostOperation.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostOperation.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
@@ -37,16 +39,18 @@ public class JavaxToJakartaPostOperation implements JakartaPostOperation {
     }
 
     @Override
-    public void run(final SlingJakartaHttpServletRequest request,
+    public void run(
+            final SlingJakartaHttpServletRequest request,
             final JakartaPostResponse response,
             final SlingJakartaPostProcessor[] processors)
-    throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException {
+            throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, PersistenceException {
         final SlingPostProcessor[] wrappers = new SlingPostProcessor[processors.length];
-        for(int i=0; i<processors.length; i++) {
+        for (int i = 0; i < processors.length; i++) {
             wrappers[i] = new JakartaToJavaxPostProcessor(processors[i]);
         }
-        this.delegate.run(JakartaToJavaxRequestWrapper.toJavaxRequest(request),
-            new JakartaToJavaxPostResponse(response), wrappers);
-
+        this.delegate.run(
+                JakartaToJavaxRequestWrapper.toJavaxRequest(request),
+                new JakartaToJavaxPostResponse(response),
+                wrappers);
     }
 }
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponse.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponse.java
index db75efc..6cf65db 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponse.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponse.java
@@ -1,37 +1,39 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
 import java.io.IOException;
 
+import jakarta.servlet.http.HttpServletResponse;
 import org.apache.sling.api.wrappers.JakartaToJavaxResponseWrapper;
 import org.apache.sling.servlets.post.JakartaPostResponse;
 import org.apache.sling.servlets.post.PostResponse;
 
-import jakarta.servlet.http.HttpServletResponse;
-
 @SuppressWarnings("deprecation")
-public class JavaxToJakartaPostResponse implements JakartaPostResponse{
+public class JavaxToJakartaPostResponse implements JakartaPostResponse {
 
     private final PostResponse delegate;
 
     public JavaxToJakartaPostResponse(final PostResponse p) {
         this.delegate = p;
     }
+
     @Override
     public Throwable getError() {
         return this.delegate.getError();
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponseCreator.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponseCreator.java
index 0dbe342..54fa086 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponseCreator.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToJakartaPostResponseCreator.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
diff --git a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToSlingJakartaPostProcessor.java b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToSlingJakartaPostProcessor.java
index a56b738..9aeab30 100644
--- a/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToSlingJakartaPostProcessor.java
+++ b/src/main/java/org/apache/sling/servlets/post/impl/wrapper/JavaxToSlingJakartaPostProcessor.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.wrapper;
 
@@ -25,7 +27,7 @@ import org.apache.sling.servlets.post.SlingJakartaPostProcessor;
 import org.apache.sling.servlets.post.SlingPostProcessor;
 
 @SuppressWarnings("deprecation")
-public class JavaxToSlingJakartaPostProcessor implements  SlingJakartaPostProcessor {
+public class JavaxToSlingJakartaPostProcessor implements SlingJakartaPostProcessor {
 
     private final SlingPostProcessor delegate;
 
diff --git a/src/main/java/org/apache/sling/servlets/post/package-info.java b/src/main/java/org/apache/sling/servlets/post/package-info.java
index 7ff4ea3..37d4074 100644
--- a/src/main/java/org/apache/sling/servlets/post/package-info.java
+++ b/src/main/java/org/apache/sling/servlets/post/package-info.java
@@ -21,4 +21,3 @@
 package org.apache.sling.servlets.post;
 
 import org.osgi.annotation.versioning.Version;
-
diff --git a/src/test/java/org/apache/sling/servlets/post/AbstractPostOperationTest.java b/src/test/java/org/apache/sling/servlets/post/AbstractPostOperationTest.java
index 65280b5..ef43ccd 100644
--- a/src/test/java/org/apache/sling/servlets/post/AbstractPostOperationTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/AbstractPostOperationTest.java
@@ -1,21 +1,28 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+
+import java.util.List;
+
 import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.commons.testing.sling.MockResourceResolver;
 import org.apache.sling.servlets.post.exceptions.PreconditionViolatedPersistenceException;
@@ -23,10 +30,6 @@ import org.apache.sling.servlets.post.exceptions.TemporaryPersistenceException;
 import org.apache.sling.servlets.post.impl.helper.MockSlingHttpServlet3Request;
 import org.junit.Test;
 
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
-import java.util.List;
-
 import static org.junit.Assert.*;
 
 public class AbstractPostOperationTest {
@@ -40,7 +43,9 @@ public class AbstractPostOperationTest {
 
         final PostOperation operation = new AbstractPostOperation() {
             @Override
-            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws RepositoryException, PreconditionViolatedPersistenceException, TemporaryPersistenceException {
+            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
+                    throws RepositoryException, PreconditionViolatedPersistenceException,
+                            TemporaryPersistenceException {
                 changes.add(Modification.onChange(ModificationType.CREATE, "/content/test"));
                 changes.add(Modification.onChange(ModificationType.CREATE, "/content/test@Postfix"));
             }
@@ -62,7 +67,8 @@ public class AbstractPostOperationTest {
 
         final PostOperation operation = new AbstractPostOperation() {
             @Override
-            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws RepositoryException {
+            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
+                    throws RepositoryException {
                 changes.add(Modification.onChange(ModificationType.CREATE, "/content/test"));
             }
         };
@@ -83,7 +89,8 @@ public class AbstractPostOperationTest {
 
         final PostOperation operation = new AbstractPostOperation() {
             @Override
-            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws RepositoryException {
+            protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes)
+                    throws RepositoryException {
                 changes.add(Modification.onChange(ModificationType.CREATE, "/content/test@Postfix"));
             }
         };
diff --git a/src/test/java/org/apache/sling/servlets/post/HtmlResponseTest.java b/src/test/java/org/apache/sling/servlets/post/HtmlResponseTest.java
index f8cf860..26ebe82 100644
--- a/src/test/java/org/apache/sling/servlets/post/HtmlResponseTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/HtmlResponseTest.java
@@ -1,29 +1,31 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
-import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
-import org.junit.Before;
-import org.junit.Test;
-
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.StringWriter;
 
+import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
+import org.junit.Before;
+import org.junit.Test;
+
 import static org.junit.Assert.*;
 
 public class HtmlResponseTest {
@@ -63,6 +65,7 @@ public class HtmlResponseTest {
         };
         res.doSend(response);
         String output = stringWriter.toString();
-        assertTrue(output.contains("<div id=\"ChangeLog\">&lt;pre&gt;modified(&quot;argument1&quot;);&lt;br/&gt;&lt;/pre&gt;</div>"));
+        assertTrue(output.contains(
+                "<div id=\"ChangeLog\">&lt;pre&gt;modified(&quot;argument1&quot;);&lt;br/&gt;&lt;/pre&gt;</div>"));
     }
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/JakartaHtmlResponseTest.java b/src/test/java/org/apache/sling/servlets/post/JakartaHtmlResponseTest.java
index 064613d..a36ac01 100644
--- a/src/test/java/org/apache/sling/servlets/post/JakartaHtmlResponseTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/JakartaHtmlResponseTest.java
@@ -1,18 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post;
 
@@ -36,7 +38,8 @@ public class JakartaHtmlResponseTest {
     public void testNoChangesOnError() throws Exception {
         res.onChange("modified", "argument1");
         res.setError(new Exception("some exception"));
-        SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult response =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.doSend(response);
         String output = response.getOutputAsString();
         assertTrue(output.contains("<div id=\"ChangeLog\"></div>"));
@@ -45,9 +48,11 @@ public class JakartaHtmlResponseTest {
     @Test
     public void testChangesOnNoError() throws Exception {
         res.onChange("modified", "argument1");
-        SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult response =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.doSend(response);
         String output = response.getOutputAsString();
-        assertTrue(output.contains("<div id=\"ChangeLog\">&lt;pre&gt;modified(&quot;argument1&quot;);&lt;br/&gt;&lt;/pre&gt;</div>"));
+        assertTrue(output.contains(
+                "<div id=\"ChangeLog\">&lt;pre&gt;modified(&quot;argument1&quot;);&lt;br/&gt;&lt;/pre&gt;</div>"));
     }
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/JakartaJsonResponseTest.java b/src/test/java/org/apache/sling/servlets/post/JakartaJsonResponseTest.java
index 7e24ce0..a46032f 100644
--- a/src/test/java/org/apache/sling/servlets/post/JakartaJsonResponseTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/JakartaJsonResponseTest.java
@@ -1,26 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post;
 
+import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 import java.io.StringReader;
-import java.util.HashMap;
-import java.util.Map;
 
 import jakarta.json.Json;
 import jakarta.json.JsonArray;
@@ -28,13 +29,9 @@ import jakarta.json.JsonNumber;
 import jakarta.json.JsonObject;
 import jakarta.json.JsonString;
 import jakarta.json.JsonValue;
-import javax.servlet.http.HttpServletResponse;
-
 import junit.framework.TestCase;
-
 import org.apache.sling.api.request.builder.Builders;
 import org.apache.sling.api.request.builder.SlingJakartaHttpServletResponseResult;
-import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
 
 public class JakartaJsonResponseTest extends TestCase {
     protected JakartaJSONResponse res;
@@ -65,7 +62,8 @@ public class JakartaJsonResponseTest extends TestCase {
     public void testSetError() throws IOException {
         String errMsg = "Dummy error";
         res.setError(new Error(errMsg));
-        SlingJakartaHttpServletResponseResult resp = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult resp =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.send(resp, true);
         JsonObject json = res.getJson();
         JsonValue error = assertProperty(json, "error");
@@ -75,11 +73,15 @@ public class JakartaJsonResponseTest extends TestCase {
 
     public void testSend() throws Exception {
         res.onChange("modified", "argument1");
-        SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult response =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString())).readObject();
+        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString()))
+                .readObject();
         assertProperty(result, JakartaHtmlResponse.PN_STATUS_CODE, HttpServletResponse.SC_OK);
-        assertEquals(JakartaJSONResponse.RESPONSE_CONTENT_TYPE + ";charset=" + JakartaJSONResponse.RESPONSE_CHARSET, response.getContentType());
+        assertEquals(
+                JakartaJSONResponse.RESPONSE_CONTENT_TYPE + ";charset=" + JakartaJSONResponse.RESPONSE_CHARSET,
+                response.getContentType());
         assertEquals(JakartaJSONResponse.RESPONSE_CHARSET, response.getCharacterEncoding());
     }
 
@@ -88,9 +90,11 @@ public class JakartaJsonResponseTest extends TestCase {
         res.onChange("modified", "argument1");
         res.setStatus(HttpServletResponse.SC_CREATED, "Created");
         res.setLocation(location);
-        SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult response =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString())).readObject();
+        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString()))
+                .readObject();
         assertProperty(result, JakartaHtmlResponse.PN_STATUS_CODE, HttpServletResponse.SC_CREATED);
         assertEquals(location, response.getHeader("Location"));
     }
@@ -102,9 +106,11 @@ public class JakartaJsonResponseTest extends TestCase {
         for (int status = 300; status < 308; status++) {
             res.setStatus(status, "3xx Status");
             res.setLocation(location);
-            SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+            SlingJakartaHttpServletResponseResult response =
+                    Builders.newResponseBuilder().buildJakartaResponseResult();
             res.send(response, true);
-            JsonObject result = Json.createReader(new StringReader(response.getOutputAsString())).readObject();
+            JsonObject result = Json.createReader(new StringReader(response.getOutputAsString()))
+                    .readObject();
             assertProperty(result, JakartaHtmlResponse.PN_STATUS_CODE, status);
             assertEquals(location, response.getHeader("Location"));
         }
@@ -120,11 +126,14 @@ public class JakartaJsonResponseTest extends TestCase {
 
     public void testSendWithJsonAsPropertyValue() throws Exception {
         String testResponseJson = "{\"user\":\"testUser\",\"properties\":{\"id\":\"testId\", \"name\":\"test\"}}";
-        JsonObject customProperty = Json.createReader(new StringReader(testResponseJson)).readObject();
+        JsonObject customProperty =
+                Json.createReader(new StringReader(testResponseJson)).readObject();
         res.setProperty("response", customProperty);
-        SlingJakartaHttpServletResponseResult response = Builders.newResponseBuilder().buildJakartaResponseResult();
+        SlingJakartaHttpServletResponseResult response =
+                Builders.newResponseBuilder().buildJakartaResponseResult();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString())).readObject();
+        JsonObject result = Json.createReader(new StringReader(response.getOutputAsString()))
+                .readObject();
         assertProperty(result, "response", customProperty);
     }
 
@@ -156,7 +165,8 @@ public class JakartaJsonResponseTest extends TestCase {
         try {
             return (T) obj;
         } catch (ClassCastException e) {
-            TestCase.fail("Object is of unexpected type. Expected: " + clazz.getName() + ", actual: " + obj.getClass().getName());
+            TestCase.fail("Object is of unexpected type. Expected: " + clazz.getName() + ", actual: "
+                    + obj.getClass().getName());
             return null;
         }
     }
diff --git a/src/test/java/org/apache/sling/servlets/post/JsonResponseTest.java b/src/test/java/org/apache/sling/servlets/post/JsonResponseTest.java
index c1868fe..29fceb1 100644
--- a/src/test/java/org/apache/sling/servlets/post/JsonResponseTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/JsonResponseTest.java
@@ -1,22 +1,25 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
-
 package org.apache.sling.servlets.post;
 
+import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 import java.io.StringReader;
 import java.util.HashMap;
@@ -28,10 +31,7 @@ import jakarta.json.JsonNumber;
 import jakarta.json.JsonObject;
 import jakarta.json.JsonString;
 import jakarta.json.JsonValue;
-import javax.servlet.http.HttpServletResponse;
-
 import junit.framework.TestCase;
-
 import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
 
 public class JsonResponseTest extends TestCase {
@@ -75,7 +75,9 @@ public class JsonResponseTest extends TestCase {
         res.onChange("modified", "argument1");
         MockSlingHttpServletResponse response = new MockSlingHttpServletResponse();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutput().toString())).readObject();
+        JsonObject result = Json.createReader(
+                        new StringReader(response.getOutput().toString()))
+                .readObject();
         assertProperty(result, HtmlResponse.PN_STATUS_CODE, HttpServletResponse.SC_OK);
         assertEquals(JSONResponse.RESPONSE_CONTENT_TYPE, response.getContentType());
         assertEquals(JSONResponse.RESPONSE_CHARSET, response.getCharacterEncoding());
@@ -88,7 +90,9 @@ public class JsonResponseTest extends TestCase {
         res.setLocation(location);
         MockResponseWithHeader response = new MockResponseWithHeader();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutput().toString())).readObject();
+        JsonObject result = Json.createReader(
+                        new StringReader(response.getOutput().toString()))
+                .readObject();
         assertProperty(result, HtmlResponse.PN_STATUS_CODE, HttpServletResponse.SC_CREATED);
         assertEquals(location, response.getHeader("Location"));
     }
@@ -102,7 +106,9 @@ public class JsonResponseTest extends TestCase {
             res.setLocation(location);
             MockResponseWithHeader response = new MockResponseWithHeader();
             res.send(response, true);
-            JsonObject result = Json.createReader(new StringReader(response.getOutput().toString())).readObject();
+            JsonObject result = Json.createReader(
+                            new StringReader(response.getOutput().toString()))
+                    .readObject();
             assertProperty(result, HtmlResponse.PN_STATUS_CODE, status);
             assertEquals(location, response.getHeader("Location"));
         }
@@ -118,11 +124,14 @@ public class JsonResponseTest extends TestCase {
 
     public void testSendWithJsonAsPropertyValue() throws Exception {
         String testResponseJson = "{\"user\":\"testUser\",\"properties\":{\"id\":\"testId\", \"name\":\"test\"}}";
-        JsonObject customProperty = Json.createReader(new StringReader(testResponseJson)).readObject();
+        JsonObject customProperty =
+                Json.createReader(new StringReader(testResponseJson)).readObject();
         res.setProperty("response", customProperty);
         MockResponseWithHeader response = new MockResponseWithHeader();
         res.send(response, true);
-        JsonObject result = Json.createReader(new StringReader(response.getOutput().toString())).readObject();
+        JsonObject result = Json.createReader(
+                        new StringReader(response.getOutput().toString()))
+                .readObject();
         assertProperty(result, "response", customProperty);
     }
 
@@ -155,7 +164,8 @@ public class JsonResponseTest extends TestCase {
         try {
             return (T) obj;
         } catch (ClassCastException e) {
-            TestCase.fail("Object is of unexpected type. Expected: " + clazz.getName() + ", actual: " + obj.getClass().getName());
+            TestCase.fail("Object is of unexpected type. Expected: " + clazz.getName() + ", actual: "
+                    + obj.getClass().getName());
             return null;
         }
     }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/NodeNameFilterTest.java b/src/test/java/org/apache/sling/servlets/post/impl/NodeNameFilterTest.java
index 8039ca4..4b7f5af 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/NodeNameFilterTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/NodeNameFilterTest.java
@@ -1,30 +1,31 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl;
 
 import junit.framework.TestCase;
-
 import org.apache.sling.servlets.post.impl.helper.NodeNameFilter;
 
 public class NodeNameFilterTest extends TestCase {
     private final NodeNameFilter filter = new NodeNameFilter();
-    
-    protected void runTest(String [] data) {
-        for(int i=0; i < data.length; i++) {
+
+    protected void runTest(String[] data) {
+        for (int i = 0; i < data.length; i++) {
             final String input = data[i];
             i++;
             final String expected = data[i];
@@ -32,23 +33,23 @@ public class NodeNameFilterTest extends TestCase {
             assertEquals(expected, actual);
         }
     }
-    
+
     public void testBasicFiltering() {
-        final String [] data = {
-                "test", "test",
-                "t?st", "t_st",
-                "t??st", "t_st"
+        final String[] data = {
+            "test", "test",
+            "t?st", "t_st",
+            "t??st", "t_st"
         };
-        
+
         runTest(data);
     }
-    
+
     public void testNoInitialNumber() {
-        final String [] data = {
-                "1234", "_1234",
-                "1", "_1"
+        final String[] data = {
+            "1234", "_1234",
+            "1", "_1"
         };
-        
+
         runTest(data);
     }
-}
\ No newline at end of file
+}
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/RequestPropertyTest.java b/src/test/java/org/apache/sling/servlets/post/impl/RequestPropertyTest.java
index b34e20f..0063a74 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/RequestPropertyTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/RequestPropertyTest.java
@@ -1,26 +1,23 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -28,7 +25,6 @@ import java.util.Set;
 import java.util.Vector;
 
 import junitx.util.PrivateAccessor;
-
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.request.RequestParameter;
 import org.apache.sling.api.request.RequestParameterMap;
@@ -43,6 +39,11 @@ import org.jmock.integration.junit4.JUnit4Mockery;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
 /**
  * This is primary a series of tests of the hasValues(), providesValues(), and getStringValues() methods of
  * RequestProperty. It uses the collectContent() method of ModifyOperation to make the test cases more readable.
@@ -184,7 +185,8 @@ public class RequestPropertyTest {
 
     @Test
     public void testMultiValueWithBlanksIgnoringBlanks() throws Throwable {
-        Map<String, RequestProperty> props = collectContent(p("./param", "true", "", ""), p("./param@IgnoreBlanks", "true"));
+        Map<String, RequestProperty> props =
+                collectContent(p("./param", "true", "", ""), p("./param@IgnoreBlanks", "true"));
 
         assertEquals(1, props.size());
         RequestProperty prop = props.get("/test/path/param");
@@ -196,14 +198,16 @@ public class RequestPropertyTest {
 
     @Test
     public void testMultiValueWithAllBlanksIgnoringBlanks() throws Throwable {
-        Map<String, RequestProperty> props = collectContent(p("./param", "", "", ""), p("./param@IgnoreBlanks", "true"));
+        Map<String, RequestProperty> props =
+                collectContent(p("./param", "", "", ""), p("./param@IgnoreBlanks", "true"));
 
         assertEquals(1, props.size());
         RequestProperty prop = props.get("/test/path/param");
         assertFalse(prop.hasValues());
     }
 
-    private static final Class[] COLLECT_CLASSES = new Class[] { SlingJakartaHttpServletRequest.class, JakartaPostResponse.class };
+    private static final Class[] COLLECT_CLASSES =
+            new Class[] {SlingJakartaHttpServletRequest.class, JakartaPostResponse.class};
 
     private class Param {
         String key;
@@ -241,7 +245,6 @@ public class RequestPropertyTest {
                     will(returnValue(kv.key));
                     allowing(entry).getValue();
                     will(returnValue(param));
-
                 }
             });
             params.add(entry);
@@ -260,7 +263,6 @@ public class RequestPropertyTest {
             {
                 one(map).entrySet();
                 will(returnValue(set));
-
             }
         });
 
@@ -274,15 +276,13 @@ public class RequestPropertyTest {
                 will(returnValue(names.elements()));
                 one(request).getRequestParameterMap();
                 will(returnValue(map));
-
             }
         });
         final JakartaHtmlResponse response = new JakartaHtmlResponse();
         response.setPath("/test/path");
 
         Map<String, RequestProperty> props = (Map<String, RequestProperty>) PrivateAccessor.invoke(
-            new ModifyOperation(), "collectContent", COLLECT_CLASSES,
-            new Object[] { request, response });
+                new ModifyOperation(), "collectContent", COLLECT_CLASSES, new Object[] {request, response});
         return props;
     }
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/SlingPostServletTest.java b/src/test/java/org/apache/sling/servlets/post/impl/SlingPostServletTest.java
index 682a367..0f90b95 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/SlingPostServletTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/SlingPostServletTest.java
@@ -23,6 +23,7 @@ import java.io.UnsupportedEncodingException;
 import java.net.URLEncoder;
 import java.util.StringTokenizer;
 
+import junit.framework.TestCase;
 import org.apache.sling.api.SlingJakartaHttpServletRequest;
 import org.apache.sling.api.request.builder.Builders;
 import org.apache.sling.api.request.header.JakartaMediaRangeList;
@@ -35,17 +36,17 @@ import org.apache.sling.servlets.post.JakartaPostOperation;
 import org.apache.sling.servlets.post.JakartaPostResponse;
 import org.apache.sling.servlets.post.SlingPostConstants;
 import org.apache.sling.servlets.post.impl.operations.DeleteOperation;
-import junit.framework.TestCase;
-
 import org.mockito.Mockito;
-import static org.mockito.Mockito.eq;
 import org.slf4j.Logger;
 
+import static org.mockito.Mockito.eq;
+
 public class SlingPostServletTest extends TestCase {
 
     private SlingPostServlet servlet;
 
     private Resource fakeResource;
+
     @Override
     protected void setUp() throws Exception {
         super.setUp();
@@ -54,46 +55,39 @@ public class SlingPostServletTest extends TestCase {
     }
 
     public void testIsSetStatus() {
-        SlingJakartaHttpServletRequest req = Builders
-            .newRequestBuilder(fakeResource)
-            .buildJakartaRequest();
+        SlingJakartaHttpServletRequest req =
+                Builders.newRequestBuilder(fakeResource).buildJakartaRequest();
 
         // 1. null parameter, expect true
-        assertTrue("Standard status expected for null param",
-            servlet.isSetStatus(req));
+        assertTrue("Standard status expected for null param", servlet.isSetStatus(req));
 
         // 2. "standard" parameter, expect true
-        req = Builders
-            .newRequestBuilder(fakeResource)
-            .withParameter(SlingPostConstants.RP_STATUS, SlingPostConstants.STATUS_VALUE_STANDARD)
-            .buildJakartaRequest();
-        assertTrue("Standard status expected for '"
-            + SlingPostConstants.STATUS_VALUE_STANDARD + "' param",
-            servlet.isSetStatus(req));
+        req = Builders.newRequestBuilder(fakeResource)
+                .withParameter(SlingPostConstants.RP_STATUS, SlingPostConstants.STATUS_VALUE_STANDARD)
+                .buildJakartaRequest();
+        assertTrue(
+                "Standard status expected for '" + SlingPostConstants.STATUS_VALUE_STANDARD + "' param",
+                servlet.isSetStatus(req));
 
         // 3. "browser" parameter, expect false
-        req = Builders
-            .newRequestBuilder(fakeResource)
-            .withParameter(SlingPostConstants.RP_STATUS, SlingPostConstants.STATUS_VALUE_BROWSER)
-            .buildJakartaRequest();
-        assertFalse("Browser status expected for '"
-            + SlingPostConstants.STATUS_VALUE_BROWSER + "' param",
-            servlet.isSetStatus(req));
+        req = Builders.newRequestBuilder(fakeResource)
+                .withParameter(SlingPostConstants.RP_STATUS, SlingPostConstants.STATUS_VALUE_BROWSER)
+                .buildJakartaRequest();
+        assertFalse(
+                "Browser status expected for '" + SlingPostConstants.STATUS_VALUE_BROWSER + "' param",
+                servlet.isSetStatus(req));
 
         // 4. any parameter, expect true
         String param = "knocking on heaven's door";
-        req = Builders
-            .newRequestBuilder(fakeResource)
-            .withParameter(SlingPostConstants.RP_STATUS, param)
-            .buildJakartaRequest();
-        assertTrue("Standard status expected for '" + param + "' param",
-            servlet.isSetStatus(req));
+        req = Builders.newRequestBuilder(fakeResource)
+                .withParameter(SlingPostConstants.RP_STATUS, param)
+                .buildJakartaRequest();
+        assertTrue("Standard status expected for '" + param + "' param", servlet.isSetStatus(req));
     }
 
     public void testGetJsonResponse() {
-        SlingJakartaHttpServletRequest origReg = Builders
-            .newRequestBuilder(fakeResource)
-            .buildJakartaRequest();
+        SlingJakartaHttpServletRequest origReg =
+                Builders.newRequestBuilder(fakeResource).buildJakartaRequest();
 
         SlingJakartaHttpServletRequest req = new SlingJakartaHttpServletRequestWrapper(origReg) {
             @Override
@@ -102,16 +96,19 @@ public class SlingPostServletTest extends TestCase {
             }
         };
         JakartaPostResponse result = servlet.createPostResponse(req);
-        assertFalse("Did not expect ErrorHandlingPostResponseWrapper PostResonse", result instanceof ErrorHandlingPostResponseWrapper);
+        assertFalse(
+                "Did not expect ErrorHandlingPostResponseWrapper PostResonse",
+                result instanceof ErrorHandlingPostResponseWrapper);
         assertTrue(result instanceof JakartaJSONResponse);
     }
 
     public void testGetHtmlResponse() {
-        SlingJakartaHttpServletRequest req = Builders
-            .newRequestBuilder(fakeResource)
-            .buildJakartaRequest();
+        SlingJakartaHttpServletRequest req =
+                Builders.newRequestBuilder(fakeResource).buildJakartaRequest();
         JakartaPostResponse result = servlet.createPostResponse(req);
-        assertFalse("Did not expect ErrorHandlingPostResponseWrapper PostResonse", result instanceof ErrorHandlingPostResponseWrapper);
+        assertFalse(
+                "Did not expect ErrorHandlingPostResponseWrapper PostResonse",
+                result instanceof ErrorHandlingPostResponseWrapper);
         assertTrue(result instanceof JakartaHtmlResponse);
     }
 
@@ -119,7 +116,7 @@ public class SlingPostServletTest extends TestCase {
      * SLING-10006 - verify we get the error handling wrapped PostResponse
      */
     public void testGetJsonResponseWithSendError() {
-    	SendErrorParamSlingJakartaHttpServletRequest req = new SendErrorParamSlingJakartaHttpServletRequest() {
+        SendErrorParamSlingJakartaHttpServletRequest req = new SendErrorParamSlingJakartaHttpServletRequest() {
             @Override
             public String getHeader(String name) {
                 return name.equals(JakartaMediaRangeList.HEADER_ACCEPT) ? "application/json" : super.getHeader(name);
@@ -128,12 +125,13 @@ public class SlingPostServletTest extends TestCase {
         req.setSendError("true");
 
         JakartaPostResponse result = servlet.createPostResponse(req);
-        assertTrue("Expected ErrorHandlingPostResponseWrapper PostResonse", result instanceof ErrorHandlingPostResponseWrapper);
-       	result = ((ErrorHandlingPostResponseWrapper)result).getWrapped();
+        assertTrue(
+                "Expected ErrorHandlingPostResponseWrapper PostResonse",
+                result instanceof ErrorHandlingPostResponseWrapper);
+        result = ((ErrorHandlingPostResponseWrapper) result).getWrapped();
         assertTrue(result instanceof JakartaJSONResponse);
     }
 
-
     public void testPersistenceExceptionLogging() {
         Logger log = Mockito.mock(Logger.class);
         SlingJakartaHttpServletRequest mockRequest = Mockito.mock(SlingJakartaHttpServletRequest.class);
@@ -147,25 +145,35 @@ public class SlingPostServletTest extends TestCase {
         servlet.setLogStacktraceInExceptions(true);
         String expected = "Exception while handling POST on path [{}] with operation [{}]";
         servlet.logPersistenceException(mockRequest, operation, exception);
-        Mockito.verify(log).warn(eq(expected),eq("/path"),eq("org.apache.sling.servlets.post.impl.operations.DeleteOperation"),eq(exception));
+        Mockito.verify(log)
+                .warn(
+                        eq(expected),
+                        eq("/path"),
+                        eq("org.apache.sling.servlets.post.impl.operations.DeleteOperation"),
+                        eq(exception));
 
         servlet.setLogStacktraceInExceptions(false);
         expected = "{} while handling POST on path [{}] with operation [{}]: {}";
         servlet.logPersistenceException(mockRequest, operation, exception);
-        Mockito.verify(log).warn(eq(expected),eq("java.io.IOException"),eq("/path"),eq("org.apache.sling.servlets.post.impl.operations.DeleteOperation"),eq("foo"));
+        Mockito.verify(log)
+                .warn(
+                        eq(expected),
+                        eq("java.io.IOException"),
+                        eq("/path"),
+                        eq("org.apache.sling.servlets.post.impl.operations.DeleteOperation"),
+                        eq("foo"));
     }
 
-
     /**
      * SLING-10006 - verify we get the error handling wrapped PostResponse
      */
     public void testGetHtmlResponseWithSendError() {
-    	SendErrorParamSlingJakartaHttpServletRequest req = new SendErrorParamSlingJakartaHttpServletRequest();
+        SendErrorParamSlingJakartaHttpServletRequest req = new SendErrorParamSlingJakartaHttpServletRequest();
         req.setSendError("true");
 
         JakartaPostResponse result = servlet.createPostResponse(req);
         assertTrue(result instanceof ErrorHandlingPostResponseWrapper);
-       	result = ((ErrorHandlingPostResponseWrapper)result).getWrapped();
+        result = ((ErrorHandlingPostResponseWrapper) result).getWrapped();
         assertTrue(result instanceof JakartaHtmlResponse);
     }
 
@@ -173,9 +181,9 @@ public class SlingPostServletTest extends TestCase {
         String utf8Path = "\u0414\u0440\u0443\u0433\u0430";
         String encodedUtf8 = "%D0%94%D1%80%D1%83%D0%B3%D0%B0";
         testRedirection("/", "/fred", "*.html", "/fred.html");
-        testRedirection("/xyz/", "/xyz/"+utf8Path, "*", "/xyz/"+encodedUtf8);
-        testRedirection("/", "/fred/"+utf8Path, "/xyz/*", "/xyz/"+encodedUtf8);
-        testRedirection("/", "/fred/"+utf8Path, null, null);
+        testRedirection("/xyz/", "/xyz/" + utf8Path, "*", "/xyz/" + encodedUtf8);
+        testRedirection("/", "/fred/" + utf8Path, "/xyz/*", "/xyz/" + encodedUtf8);
+        testRedirection("/", "/fred/" + utf8Path, null, null);
         // test redirect with host information
         testRedirection("/", "/fred/abc", "http://forced", null);
         testRedirection("/", "/fred/abc", "//forced.com/test", null);
@@ -203,9 +211,7 @@ public class SlingPostServletTest extends TestCase {
         private String redirect;
 
         private RedirectServletRequest(String redirect, String requestPath) {
-            super(Builders
-                .newRequestBuilder(Mockito.mock(Resource.class))
-                .buildJakartaRequest());
+            super(Builders.newRequestBuilder(Mockito.mock(Resource.class)).buildJakartaRequest());
             this.requestPath = requestPath;
             this.redirect = redirect;
         }
@@ -225,58 +231,54 @@ public class SlingPostServletTest extends TestCase {
         private String redirectLocation;
 
         public RedirectServletResponse() {
-            super(Builders
-                .newResponseBuilder()
-                .buildJakartaResponseResult());
+            super(Builders.newResponseBuilder().buildJakartaResponseResult());
         }
 
         @Override
         public String encodeRedirectURL(String s) {
             StringTokenizer st = new StringTokenizer(s, "/", true);
             StringBuilder sb = new StringBuilder();
-        	try {
-        	    while (st.hasMoreTokens()) {
-        	        String token = st.nextToken();
-        	        if ("/".equals(token)) {
+            try {
+                while (st.hasMoreTokens()) {
+                    String token = st.nextToken();
+                    if ("/".equals(token)) {
                         sb.append(token);
-        	        } else {
-        	            sb.append(URLEncoder.encode(token, "UTF-8"));
-        	        }
-        	    }
-        	} catch (UnsupportedEncodingException e) {
-        		fail("Should have UTF-8?? " + e);
-        		return null;
-        	}
+                    } else {
+                        sb.append(URLEncoder.encode(token, "UTF-8"));
+                    }
+                }
+            } catch (UnsupportedEncodingException e) {
+                fail("Should have UTF-8?? " + e);
+                return null;
+            }
             return sb.toString();
         }
 
         @Override
         public void sendRedirect(String s) throws IOException {
-        	redirectLocation = s;
+            redirectLocation = s;
         }
     }
 
     private static class SendErrorParamSlingJakartaHttpServletRequest extends SlingJakartaHttpServletRequestWrapper {
 
-		private String sendError;
+        private String sendError;
 
-		public SendErrorParamSlingJakartaHttpServletRequest() {
-            super(Builders
-                .newRequestBuilder(Mockito.mock(Resource.class))
-                .buildJakartaRequest());
-		}
+        public SendErrorParamSlingJakartaHttpServletRequest() {
+            super(Builders.newRequestBuilder(Mockito.mock(Resource.class)).buildJakartaRequest());
+        }
 
-		@Override
-		public String getParameter(String name) {
-		    if (SlingPostConstants.RP_SEND_ERROR.equals(name)) {
-		        return sendError;
-		    }
+        @Override
+        public String getParameter(String name) {
+            if (SlingPostConstants.RP_SEND_ERROR.equals(name)) {
+                return sendError;
+            }
 
-		    return super.getParameter(name);
-		}
+            return super.getParameter(name);
+        }
 
-		void setSendError(String sendErrorParam) {
-		    this.sendError = sendErrorParam;
-		}
-	}
+        void setSendError(String sendErrorParam) {
+            this.sendError = sendErrorParam;
+        }
+    }
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGeneratorTest.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGeneratorTest.java
index 351e1d6..e4ff19e 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGeneratorTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/DefaultNodeNameGeneratorTest.java
@@ -1,24 +1,23 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
@@ -30,6 +29,9 @@ import org.apache.sling.servlets.post.JakartaNodeNameGenerator;
 import org.junit.Test;
 import org.mockito.Mockito;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
 /**
  * Test node name generator
  */
@@ -38,28 +40,25 @@ public class DefaultNodeNameGeneratorTest {
     protected String nodeName(Map<String, String[]> parameterMap) {
         return nodeName(parameterMap, false);
     }
+
     protected String nodeName(Map<String, String[]> parameterMap, boolean requirePrefix) {
-        SlingJakartaHttpServletRequest request = Builders
-            .newRequestBuilder(Mockito.mock(Resource.class))
-            .withParameters(parameterMap).buildJakartaRequest();
+        SlingJakartaHttpServletRequest request = Builders.newRequestBuilder(Mockito.mock(Resource.class))
+                .withParameters(parameterMap)
+                .buildJakartaRequest();
 
         String basePath = null;
         JakartaNodeNameGenerator defaultNodeNameGenerator = null;
 
-        String[] parameterNames = new String[] {
-                "title",
-                "sling:subject"
-            };
+        String[] parameterNames = new String[] {"title", "sling:subject"};
         int maxNameLength = 10;
-        JakartaNodeNameGenerator nodeNameGenerator = new DefaultNodeNameGenerator(
-                parameterNames,
-                maxNameLength);
+        JakartaNodeNameGenerator nodeNameGenerator = new DefaultNodeNameGenerator(parameterNames, maxNameLength);
         return nodeNameGenerator.getNodeName(request, basePath, requirePrefix, defaultNodeNameGenerator);
     }
 
     protected void assertDefaultName(Map<String, String[]> parameterMap) {
         assertDefaultName(parameterMap, false);
     }
+
     protected void assertDefaultName(Map<String, String[]> parameterMap, boolean requirePrefix) {
         String nodeName = nodeName(parameterMap, requirePrefix);
         assertTrue(nodeName.matches("\\d+_\\d+"));
@@ -68,6 +67,7 @@ public class DefaultNodeNameGeneratorTest {
     protected void assertExpectedName(Map<String, String[]> parameterMap, String expectedName) {
         assertExpectedName(parameterMap, expectedName, false);
     }
+
     protected void assertExpectedName(Map<String, String[]> parameterMap, String expectedName, boolean requirePrefix) {
         String nodeName = nodeName(parameterMap, requirePrefix);
         assertEquals(expectedName, nodeName);
@@ -190,5 +190,4 @@ public class DefaultNodeNameGeneratorTest {
         map.put("sling:subject@ValueFrom", new String[] {"sling:message"});
         assertDefaultName(map);
     }
-
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxyTest.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxyTest.java
index a552795..2952224 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxyTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/HtmlResponseProxyTest.java
@@ -1,25 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import java.io.IOException;
-
 import javax.servlet.http.HttpServletResponse;
 
+import java.io.IOException;
+
 import org.apache.sling.servlets.post.PostResponse;
 import org.junit.Test;
 
@@ -32,50 +34,35 @@ public class HtmlResponseProxyTest {
 
     private static final PostResponse POST_RESPONSE = new PostResponse() {
 
-        public void setTitle(String title) {
-        }
+        public void setTitle(String title) {}
 
-        public void setStatus(int code, String message) {
-        }
+        public void setStatus(int code, String message) {}
 
-        public void setReferer(String referer) {
-        }
+        public void setReferer(String referer) {}
 
-        public void setPath(String path) {
-        }
+        public void setPath(String path) {}
 
-        public void setParentLocation(String parentLocation) {
-        }
+        public void setParentLocation(String parentLocation) {}
 
-        public void setLocation(String location) {
-        }
+        public void setLocation(String location) {}
 
-        public void setError(Throwable error) {
-        }
+        public void setError(Throwable error) {}
 
-        public void setCreateRequest(boolean isCreateRequest) {
-        }
+        public void setCreateRequest(boolean isCreateRequest) {}
 
-        public void send(HttpServletResponse response, boolean setStatus) throws IOException {
-        }
+        public void send(HttpServletResponse response, boolean setStatus) throws IOException {}
 
-        public void onMoved(String srcPath, String dstPath) {
-        }
+        public void onMoved(String srcPath, String dstPath) {}
 
-        public void onModified(String path) {
-        }
+        public void onModified(String path) {}
 
-        public void onDeleted(String path) {
-        }
+        public void onDeleted(String path) {}
 
-        public void onCreated(String path) {
-        }
+        public void onCreated(String path) {}
 
-        public void onCopied(String srcPath, String dstPath) {
-        }
+        public void onCopied(String srcPath, String dstPath) {}
 
-        public void onChange(String type, String... arguments) {
-        }
+        public void onChange(String type, String... arguments) {}
 
         public boolean isSuccessful() {
             return false;
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Request.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Request.java
index 5fa0ba2..fcd42d6 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Request.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Request.java
@@ -1,44 +1,47 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import org.apache.sling.commons.testing.sling.MockSlingHttpServletRequest;
-
 import javax.servlet.*;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpUpgradeHandler;
 import javax.servlet.http.Part;
+
 import java.io.IOException;
 import java.util.Collection;
 import java.util.Enumeration;
 import java.util.Locale;
 import java.util.Map;
 
+import org.apache.sling.commons.testing.sling.MockSlingHttpServletRequest;
+
 /**
  * When MockSlingHttpServletRequest supports Servlet 3 correctly, delete this class.
  */
 public class MockSlingHttpServlet3Request extends MockSlingHttpServletRequest {
     public MockSlingHttpServlet3Request(String o, String o1, String o2, String o3, String o4) {
-        super(o,o1,o2,o3,o4);
+        super(o, o1, o2, o3, o4);
     }
 
     @Override
     public Enumeration<Locale> getLocales() {
-        return  (Enumeration<Locale>) super.getLocales();
+        return (Enumeration<Locale>) super.getLocales();
     }
 
     @Override
@@ -53,12 +56,12 @@ public class MockSlingHttpServlet3Request extends MockSlingHttpServletRequest {
 
     @Override
     public Enumeration<String> getAttributeNames() {
-        return (Enumeration<String>)  super.getAttributeNames();
+        return (Enumeration<String>) super.getAttributeNames();
     }
 
     @Override
     public Map<String, String[]> getParameterMap() {
-        return ( Map<String, String[]> ) super.getParameterMap();
+        return (Map<String, String[]>) super.getParameterMap();
     }
 
     @Override
@@ -82,14 +85,10 @@ public class MockSlingHttpServlet3Request extends MockSlingHttpServletRequest {
     }
 
     @Override
-    public void login(String s, String s1) throws ServletException {
-
-    }
+    public void login(String s, String s1) throws ServletException {}
 
     @Override
-    public void logout() throws ServletException {
-
-    }
+    public void logout() throws ServletException {}
 
     @Override
     public Collection<Part> getParts() throws IOException, ServletException {
@@ -122,7 +121,8 @@ public class MockSlingHttpServlet3Request extends MockSlingHttpServletRequest {
     }
 
     @Override
-    public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException {
+    public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
+            throws IllegalStateException {
         return null;
     }
 
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Response.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Response.java
index 8bc8b1a..06ce74e 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Response.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/MockSlingHttpServlet3Response.java
@@ -1,25 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
-
 import java.util.Collection;
 
+import org.apache.sling.commons.testing.sling.MockSlingHttpServletResponse;
+
 /**
  * When MockSlingHttpServletResponse supports Servlet 3 correctly, delete this class.
  */
@@ -45,7 +47,5 @@ public class MockSlingHttpServlet3Response extends MockSlingHttpServletResponse
     }
 
     @Override
-    public void setContentLengthLong(long l) {
-
-    }
+    public void setContentLengthLong(long l) {}
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStreamTest.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStreamTest.java
index e91a020..5f13379 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStreamTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/ResourceIteratorInputStreamTest.java
@@ -16,19 +16,18 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
 package org.apache.sling.servlets.post.impl.helper;
 
-import org.apache.sling.api.resource.Resource;
-import org.apache.sling.commons.testing.sling.MockResource;
-import org.junit.Assert;
-import org.junit.Test;
-
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.List;
 
+import org.apache.sling.api.resource.Resource;
+import org.apache.sling.commons.testing.sling.MockResource;
+import org.junit.Assert;
+import org.junit.Test;
+
 /**
  * Created by ieb on 06/09/2016.
  */
@@ -37,16 +36,17 @@ public class ResourceIteratorInputStreamTest {
     @Test
     public void test() throws IOException {
         List<Resource> resources = new ArrayList<Resource>();
-        for (int i = 0; i < 10; i++ ) {
+        for (int i = 0; i < 10; i++) {
             final int initialState = i;
             final InputStream in = new InputStream() {
                 private int state = initialState;
+
                 @Override
                 public int read() throws IOException {
                     return state--;
                 }
             };
-            resources.add(new MockResource(null,null,null){
+            resources.add(new MockResource(null, null, null) {
                 @Override
                 public <AdapterType> AdapterType adaptTo(Class<AdapterType> type) {
                     if (InputStream.class.equals(type)) {
@@ -57,22 +57,22 @@ public class ResourceIteratorInputStreamTest {
 
                 @Override
                 public String getName() {
-                    return "chunk-"+(initialState*100)+"-"+(((initialState+1)*100)-1);
+                    return "chunk-" + (initialState * 100) + "-" + (((initialState + 1) * 100) - 1);
                 }
             });
         }
         ResourceIteratorInputStream resourceIteratorInputStream = new ResourceIteratorInputStream(resources.iterator());
         int expected = 0;
         int cycle = 0;
-        for(int i = resourceIteratorInputStream.read(); i >= 0; i = resourceIteratorInputStream.read()) {
+        for (int i = resourceIteratorInputStream.read(); i >= 0; i = resourceIteratorInputStream.read()) {
             Assert.assertEquals(expected, i);
-            if ( expected == 0 ) {
+            if (expected == 0) {
                 cycle++;
-                expected=cycle;
+                expected = cycle;
             } else {
                 expected--;
             }
         }
-        Assert.assertEquals(10,cycle);
+        Assert.assertEquals(10, cycle);
     }
 }
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerAutotypeTest.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerAutotypeTest.java
index ec8a14f..b6ed581 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerAutotypeTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerAutotypeTest.java
@@ -1,25 +1,27 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import static org.junit.Assert.assertEquals;
-
 import org.junit.Test;
 
+import static org.junit.Assert.assertEquals;
+
 /** Verify the AutoType values of property names for which
  *  we automatically set values.
  */
@@ -28,11 +30,12 @@ public class SlingPropertyValueHandlerAutotypeTest {
     private void assertAlias(String propertyNameA) {
         final String propertyNameB = "jcr:" + propertyNameA;
 
-        assertEquals("Expecting same AutotType for " + propertyNameA + " and " + propertyNameB,
+        assertEquals(
+                "Expecting same AutotType for " + propertyNameA + " and " + propertyNameB,
                 SlingPropertyValueHandler.getAutoType(propertyNameA),
-                SlingPropertyValueHandler.getAutoType(propertyNameB)
-                );
+                SlingPropertyValueHandler.getAutoType(propertyNameB));
     }
+
     @Test
     public void checkPropertyAliases() {
         assertAlias("created");
diff --git a/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerTest.java b/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerTest.java
index 0e819c8..0ce6b13 100644
--- a/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerTest.java
+++ b/src/test/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandlerTest.java
@@ -1,34 +1,33 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.sling.servlets.post.impl.helper;
 
-import static org.junit.Assert.assertEquals;
... 1052 lines suppressed ...


(sling-org-apache-sling-servlets-post) 01/02: SLING-12726 Update to Parent 62

Posted by ss...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch feature/SLING-12726-parent-62
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-post.git

commit 57db970b531ac7e82966d4435ab8f6c14d1c3204
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Fri Mar 28 15:44:05 2025 +0100

    SLING-12726 Update to Parent 62
---
 .sling-module.json | 5 +++++
 pom.xml            | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.sling-module.json b/.sling-module.json
new file mode 100644
index 0000000..cfad4d2
--- /dev/null
+++ b/.sling-module.json
@@ -0,0 +1,5 @@
+{
+  "jenkins": {
+    "jdks": [17, 21]
+  }
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index ac2bec9..db93cb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-bundle-parent</artifactId>
-        <version>52</version>
+        <version>62</version>
         <relativePath />
     </parent>
 
@@ -231,4 +231,3 @@
     </dependencies>
 
 </project>
-