/*
 * 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
 *
 * 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.api.resource;

/**
 * Simple helper class representing nonexisting resources.
 */
public final class NonExistingResource extends SyntheticResource {

    public NonExistingResource(ResourceResolver resourceResolver,
            String resourceURI) {
        super(resourceResolver, resourceURI, RESOURCE_TYPE_NON_EXISTING);
    }

    public final String getResourceType() {
        // overwrite to prevent overwriting of this method in extensions of
        // this class because the specific resource type is the marker of a
        // NonExistingResource
        return RESOURCE_TYPE_NON_EXISTING;
    }

    public String toString() {
        // overwrite to only list the class name and path, type is irrelevant
        return getClass().getSimpleName() + ", path=" + getPath();
    }
}

@@ -910,77 +910,647 @@
 .%0A *
-/%0Apublic final class NonExistingResource extends SyntheticResource %7B%0A
+%0A * This is an utility class to %3Cem%3Ecreate%3C/em%3E non existing resources.%0A * It is not meant to be used to check if a resource is a non existing%0A * resource. Use the %7B@link ResourceUtil#isNonExistingResource(Resource)%7D%0A * method instead (or check the resource type yourself). The reason%0A * for this is that this resource might be wrapped by other resource%0A * implementations like resource decorators etc.%0A */%0Apublic final class NonExistingResource extends SyntheticResource %7B%0A%0A    /**%0A     * Create a new non existing resource.%0A     * @param resourceResolver The resource resolver.%0A     * @param resourceURI The path of the resource.%0A     */
 %0A   
@@ -1569,32 +1569,38 @@
 xistingResource(
+final 
 ResourceResolver
@@ -1630,16 +1630,22 @@
         
+final 
 String r
@@ -1731,32 +1731,126 @@
 ISTING);%0A    %7D%0A%0A
+    /**%0A     * @see org.apache.sling.api.resource.SyntheticResource#getResourceType()%0A     */%0A
     public final

Clarify javadocs