Finally fix resource decorator.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@921465 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java b/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
index ba30afd..0ab24a8 100644
--- a/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
+++ b/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
@@ -82,6 +82,7 @@
             String resourceType = null;
             if ( resource.getPath().endsWith("/*") ) {
                 apply = true;
+                resourceType = Mapping.DEFAULT_NODE_TYPE;
             } else {
                 // 2. if the resource is adaptable to a node
                 //    and the primary node type equals the resource type