You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2015/03/30 17:43:41 UTC

[12/59] [abbrv] isis git commit: ISIS-720: mothballing scimpi

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ImageLookup.java
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ImageLookup.java b/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ImageLookup.java
deleted file mode 100644
index 39a703a..0000000
--- a/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ImageLookup.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- *  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.isis.viewer.scimpi.servlet;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import javax.servlet.ServletContext;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import org.apache.isis.core.commons.debug.DebugString;
-import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
-import org.apache.isis.core.metamodel.spec.ObjectSpecification;
-
-/**
- * ImageLookup provides an efficient way of finding the most suitable image to
- * use. It ensures that an image is always available, providing a default image
- * if needed. All requests are cached to improve performance.
- */
-// TODO allow for multiple extension types
-public class ImageLookup {
-    private static final Logger LOG = LoggerFactory.getLogger(ImageLookup.class);
-    private static final String UNKNOWN_IMAGE = "Default";
-    private static final String[] EXTENSIONS = { "png", "gif", "jpg", "jpeg" };
-    private static final Map images = new HashMap();
-    private static String imageDirectory;
-    // private static String unknownImageFile;
-    private static ServletContext context;
-
-    public static void setImageDirectory(final ServletContext context, String imageDirectory) {
-        LOG.debug("image directory required for: " + imageDirectory);
-        ImageLookup.context = context;
-        imageDirectory = (imageDirectory.startsWith("/") ? "" : "/") + imageDirectory + "/";
-        final Set resourcePaths = context.getResourcePaths(imageDirectory);
-        if (resourcePaths == null || resourcePaths.size() == 0) {
-            //throw new IsisException("No image directory found: " + imageDirectory);
-            LOG.warn("No image directory found: " + imageDirectory);
-        }
-        LOG.info("image directory set to: " + imageDirectory);
-        ImageLookup.imageDirectory = imageDirectory;
-    }
-
-    public static void debug(final DebugString debug) {
-        debug.appendTitle("Image Lookup");
-        debug.indent();
-        final Iterator keys = images.keySet().iterator();
-        while (keys.hasNext()) {
-            final Object key = keys.next();
-            final Object value = images.get(key);
-            debug.appendln(key + " -> " + value);
-        }
-        debug.unindent();
-    }
-
-    private static String imageFile(final String imageName, final String contextPath) {
-        for (final String element : EXTENSIONS) {
-            URL resource;
-            try {
-                final String imagePath = imageDirectory + imageName + "." + element;
-                resource = context.getResource(imagePath);
-                if (resource != null) {
-                    LOG.debug("image found at " + contextPath + imagePath);
-                    return contextPath + imagePath;
-                }
-                final URL onClasspath = ImageLookup.class.getResource(imagePath);
-                if (onClasspath != null) {
-                    LOG.debug("image found on classpath " + onClasspath);
-                    return contextPath + imagePath;
-                }
-            } catch (final MalformedURLException ignore) {
-            }
-        }
-        return null;
-    }
-
-    private static String findImage(final ObjectSpecification specification, final String contextPath) {
-        String path = findImageFor(specification, contextPath);
-        if (path == null) {
-            path = imageFile(UNKNOWN_IMAGE, contextPath);
-        }
-        return path;
-    }
-
-    private static String findImageFor(final ObjectSpecification specification, final String contextPath) {
-        final String name = specification.getShortIdentifier();
-        final String fileName = imageFile(name, contextPath);
-        if (fileName != null) {
-            images.put(name, fileName);
-            return fileName;
-        } else {
-            for (final ObjectSpecification interfaceSpec : specification.interfaces()) {
-                final String path = findImageFor(interfaceSpec, contextPath);
-                if (path != null) {
-                    return path;
-                }
-            }
-            final ObjectSpecification superclass = specification.superclass();
-            if (superclass != null) {
-                return findImageFor(superclass, contextPath);
-            } else {
-                return null;
-            }
-        }
-    }
-
-    /**
-     * For an object, the icon name from the object is return if it is not null,
-     * otherwise the specification is used to look up a suitable image name.
-     * 
-     * @param contextPath
-     * 
-     * @see ObjectAdapter#getIconName()
-     * @see #imagePath(ObjectSpecification)
-     */
-    /*
-     * public static String imagePath(ObjectAdapter object) { String iconName =
-     * object.getIconName(); if (iconName != null) { return imagePath(iconName);
-     * } else { return imagePath(object.getSpecification()); } }
-     */
-    public static String imagePath(final ObjectSpecification specification, final String contextPath) {
-        final String name = specification.getShortIdentifier();
-        final String imageName = (String) images.get(name);
-        if (imageName != null) {
-            return imageName;
-        } else {
-            return findImage(specification, contextPath);
-        }
-    }
-
-    /*
-     * public static String imagePath(String name) { String imageName = (String)
-     * images.get(name); if (imageName != null) { return (String) imageName; }
-     * else { String fileName = imageFile(name); return fileName == null ?
-     * unknownImageFile : fileName; } }
-     */
-
-    public static String imagePath(final ObjectAdapter object, final String contextPath) {
-        final String name = object.getIconName();
-        final String imageName = (String) images.get(name);
-        if (imageName != null) {
-            return imageName;
-        } else {
-            final String imageFile = imageFile(name, contextPath);
-            if (imageFile != null) {
-                return imageFile;
-            } else {
-                return findImage(object.getSpecification(), contextPath);
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ServletRequestContext.java
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ServletRequestContext.java b/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ServletRequestContext.java
deleted file mode 100644
index 9b01b60..0000000
--- a/component/viewer/scimpi/servlet/src/main/java/org/apache/isis/viewer/scimpi/servlet/ServletRequestContext.java
+++ /dev/null
@@ -1,373 +0,0 @@
-/*
- *  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.isis.viewer.scimpi.servlet;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.PrintWriter;
-import java.net.MalformedURLException;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.apache.isis.core.commons.debug.DebugBuilder;
-import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
-import org.apache.isis.core.metamodel.spec.ObjectSpecification;
-import org.apache.isis.viewer.scimpi.dispatcher.DispatchException;
-import org.apache.isis.viewer.scimpi.dispatcher.ErrorCollator;
-import org.apache.isis.viewer.scimpi.dispatcher.ScimpiException;
-import org.apache.isis.viewer.scimpi.dispatcher.ScimpiNotFoundException;
-import org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext;
-import org.apache.isis.viewer.scimpi.dispatcher.debug.DebugUsers;
-
-public class ServletRequestContext extends RequestContext {
-    private HttpServletRequest request;
-    private HttpServletResponse response;
-    private ServletContext servletContext;
-    private boolean isAborted;
-
-    public ServletRequestContext(final DebugUsers debugUsers) {
-        super(debugUsers);
-    }
-
-    public void append(final DebugBuilder view) {
-        super.append(view);
-
-        /*
-         * view.divider("System"); Runtime.getRuntime().
-         */
-        view.startSection("HTTP Serviet Request");
-        view.appendTitle("General");
-        view.appendln("Auth type", request.getAuthType());
-        view.appendln("Character encoding", request.getCharacterEncoding());
-        view.appendln("Class", request.getClass());
-        view.appendln("Content type", request.getContentType());
-        view.appendln("Context path", getContextPath());
-        view.appendln("Locale", request.getLocale());
-        view.appendln("Method", request.getMethod());
-        view.appendln("Path info", request.getPathInfo());
-        view.appendln("Path translated", request.getPathTranslated());
-        view.appendln("Protocol", request.getProtocol());
-        view.appendln("Query string", request.getQueryString());
-        view.appendln("Remote host", request.getRemoteHost());
-        view.appendln("Remote user", request.getRemoteUser());
-        view.appendln("Real path", servletContext.getRealPath("/"));
-        view.appendln("Scheme", request.getScheme());
-        view.appendln("Server name", request.getServerName());
-        view.appendln("Servlet path", request.getServletPath());
-        view.appendln("Session", request.getSession());
-        view.appendln("Session ID", request.getRequestedSessionId());
-        view.appendln("URI", request.getRequestURI());
-        view.appendln("URL", request.getRequestURL());
-        view.appendln("User principle", request.getUserPrincipal());
-
-        
-        final Cookie[] cookies = request.getCookies();
-        if (cookies != null) {
-            view.appendTitle("Cookies");
-            for (final Cookie cookie : cookies) {
-                view.appendln(cookie.getName(), cookie.getValue());
-            }
-        }
-        
-        final Enumeration attributeNames = request.getAttributeNames();
-        if (attributeNames.hasMoreElements()) {
-            view.appendTitle("Attributes");
-            while (attributeNames.hasMoreElements()) {
-                final String name = (String) attributeNames.nextElement();
-                view.appendln(name, request.getAttribute(name));
-            }
-        }
-
-        view.appendTitle("Headers");
-        final Enumeration headerNames = request.getHeaderNames();
-        while (headerNames.hasMoreElements()) {
-            final String name = (String) headerNames.nextElement();
-            view.appendln(name, request.getHeader(name));
-        }
-
-        view.appendTitle("Parameters");
-        final Enumeration parameterNames = request.getParameterNames();
-        while (parameterNames.hasMoreElements()) {
-            final String name = (String) parameterNames.nextElement();
-            view.appendln(name, request.getParameter(name));
-        }
-
-        view.appendTitle("Servlet Context");
-        final ServletContext context = getServletContext();
-        view.appendln("Name", context.getServletContextName());
-        view.appendln("Server Info", context.getServerInfo());
-        view.appendln("Version", context.getMajorVersion() + "." + context.getMinorVersion());
-        view.appendln("Attributes", getAttributes(context));
-        view.appendln("Init parameters", getParameters(context));
-        view.appendln("Real path", context.getRealPath("/"));
-    }
-
-    private String getAttributes(final ServletContext context) {
-        final StringBuffer buf = new StringBuffer();
-        final Enumeration names = context.getAttributeNames();
-        while (names.hasMoreElements()) {
-            final String name = (String) names.nextElement();
-            buf.append(name + "=" + context.getAttribute(name));
-        }
-        return buf.toString();
-    }
-
-    private String getParameters(final ServletContext context) {
-        final StringBuffer buf = new StringBuffer();
-        final Enumeration names = context.getInitParameterNames();
-        while (names.hasMoreElements()) {
-            final String name = (String) names.nextElement();
-            buf.append(name + "=" + context.getInitParameter(name));
-        }
-        return buf.toString();
-    }
-
-    public void startRequest(final HttpServletRequest request, final HttpServletResponse response, final ServletContext servletContext) {
-        this.request = request;
-        this.response = response;
-        this.servletContext = servletContext;
-        final Enumeration parameterNames = request.getParameterNames();
-        while (parameterNames.hasMoreElements()) {
-            final String name = (String) parameterNames.nextElement();
-            addParameter(name, request.getParameter(name));
-        }
-        initSession();
-    }
-
-    public HttpServletRequest getRequest() {
-        return request;
-    }
-
-    public HttpServletResponse getResponse() {
-        return response;
-    }
-
-    public ServletContext getServletContext() {
-        return servletContext;
-    }
-
-    @Override
-    public PrintWriter getWriter() {
-        try {
-            return response.getWriter();
-        } catch (final IOException e) {
-            throw new ScimpiException(e);
-        }
-    }
-
-    @Override
-    public String findFile(final String fileName) {
-        try {
-            if (getServletContext().getResource(fileName) == null) {
-                return null;
-            } else {
-                return fileName;
-            }
-        } catch (final MalformedURLException e) {
-            throw new ScimpiException(e);
-        }
-    }
-
-    @Override
-    public String getErrorDetails() {
-        return (String) getRequest().getAttribute("com.planchaser.error.details");
-    }
-
-    @Override
-    public String getErrorMessage() {
-        return (String) getRequest().getAttribute("com.planchaser.error.message");
-    }
-
-    @Override
-    public String getErrorReference() {
-        return (String) getRequest().getAttribute("com.planchaser.error.reference");
-    }
-
-    @Override
-    public InputStream openStream(final String path) {
-        final InputStream in = servletContext.getResourceAsStream(path);
-
-        if (in == null) {
-            servletContext.getResourcePaths("/");
-            try {
-                servletContext.getResource(path);
-            } catch (final MalformedURLException e) {
-                throw new ScimpiException(e);
-            }
-
-            throw new ScimpiNotFoundException("Cannot find file " + path);
-        }
-        return in;
-    }
-    
-    @Override
-    public void startHttpSession() {
-        addVariable("_auth_session", getSession(), Scope.SESSION); 
-    }
-
-    private void initSession(){
-        final HttpSession httpSession = request.getSession(true);
-        // TODO when using version 3.0 of Servlet API use the HttpOnly setting for improved security
-        if (httpSession.getAttribute("scimpi-context") == null) {
-            final Map<String, Object> sessionData = getSessionData();
-            httpSession.setAttribute("scimpi-context", sessionData);
-        } else {
-            final HashMap<String, Object> data = (HashMap<String, Object>) httpSession.getAttribute("scimpi-context");
-            if (data != null) {
-                setSessionData(data);
-            }
-        }
-    }
-
-    @Override
-    protected String getSessionId() {
-        return request.getSession().getId();
-    }
-
-    @Override
-    public String clearSession() {
-        request.getSession().invalidate();
-        return null;
-    }
-
-    @Override
-    public void reset() {
-        try {
-            response.getWriter().print("<h1>RESET</h1>");
-        } catch (final IOException e) {
-            throw new DispatchException(e);
-        }
-        response.reset();
-    }
-
-    @Override
-    public void forward(final String view) {
-        try {
-            isAborted = true;
-            getRequest().getRequestDispatcher(view).forward(getRequest(), getResponse());
-        } catch (final IOException e) {
-            throw new DispatchException(e);
-        } catch (final ServletException e) {
-            throw new DispatchException(e);
-        }
-    }
-
-    @Override
-    public void redirectTo(final String view) {
-        try {
-            isAborted = true;
-            getResponse().sendRedirect(view);
-        } catch (final IOException e) {
-            throw new DispatchException(e);
-        }
-    }
-
-    @Override
-    public void raiseError(final int status, final ErrorCollator errorDetails) {
-        try {
-            isAborted = true;
-            getRequest().setAttribute("com.planchaser.error.reference", errorDetails.getReference()); 
-            getRequest().setAttribute("com.planchaser.error.message", errorDetails.getMessage());
-            getRequest().setAttribute("com.planchaser.error.details", errorDetails.getDetails());
-            getResponse().sendError(status);
-        } catch (final IOException e) {
-            throw new RuntimeException(e);
-        }
-    }
-
-    @Override
-    public boolean isAborted() {
-        return isAborted;
-    }
-
-    @Override
-    public void setContentType(final String string) {
-        getResponse().setContentType(string);
-    }
-
-    @Override
-    public String imagePath(final ObjectAdapter object) {
-        final String contextPath = getContextPath();
-        return ImageLookup.imagePath(object, contextPath);
-    }
-
-    @Override
-    public String imagePath(final ObjectSpecification specification) {
-        final String contextPath = getContextPath();
-        return ImageLookup.imagePath(specification, contextPath);
-    }
-
-    @Override
-    public String getContextPath() {
-        return request.getContextPath();
-    }
-
-    @Override
-    public String getHeader(final String name) {
-        return request.getHeader(name);
-    }
-
-    @Override
-    public String getQueryString() {
-        return request.getQueryString();
-    }
-
-    @Override
-    public String getUri() {
-        return request.getRequestURI() + "?" + request.getQueryString();
-    }
-
-    @Override
-    public String getUrlBase() {
-        // return request.getScheme() + request.getServerName() +
-        // request.getServerPort();
-        final StringBuffer url = request.getRequestURL();
-        url.setLength(url.length() - request.getRequestURI().length());
-        return url.toString();
-    }
-
-    @Override
-    public void addCookie(final String name, final String value, final int minutesUtilExpires) {
-        final Cookie cookie = new Cookie(name, value);
-        cookie.setMaxAge(minutesUtilExpires * 60);
-        response.addCookie(cookie);
-    }
-
-    @Override
-    public String getCookie(final String name) {
-        final Cookie[] cookies = request.getCookies();
-        if (cookies != null) {
-            for (final Cookie cookie : cookies) {
-                if (cookie.getName().equals(name)) {
-                    return cookie.getValue();
-                }
-            }
-        }
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/src/main/appended-resources/supplemental-models.xml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/src/main/appended-resources/supplemental-models.xml b/component/viewer/scimpi/src/main/appended-resources/supplemental-models.xml
deleted file mode 100644
index ecd3906..0000000
--- a/component/viewer/scimpi/src/main/appended-resources/supplemental-models.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 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. -->
-<supplementalDataModels xmlns="http://maven.apache.org/supplemental-model/1.0.0"
-                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                        xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd">
-
-  <supplement>
-    <project>
-      <groupId>aopalliance</groupId>
-      <artifactId>aopalliance</artifactId>
-      <version>1.0</version>
-      <licenses>
-          <license>
-              <name>Public Domain</name>
-          </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-   	<!-- not quite sure why licenses:download-license flags this, since license info seems to be in its POM -->
-    <project>
-		<groupId>org.datanucleus</groupId>
-	    <artifactId>datanucleus-jodatime</artifactId>
-	    <version>3.1.1</version>
-          <licenses>
-			<license>
-	            <name>The Apache Software License, Version 2.0</name>
-	            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-	        </license>
-	    </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>org.scannotation</groupId>
-      <artifactId>scannotation</artifactId>
-      <version>1.0.3</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-    
-  <supplement>
-    <project>
-      <groupId>dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>1.6.1</version>
-      <licenses>
-        <license>
-            <name>BSD License</name>
-            <url>http://dom4j.sourceforge.net/dom4j-1.6.1/license.html</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
-  <supplement>
-    <project>
-      <groupId>net.jcip</groupId>
-      <artifactId>jcip-annotations</artifactId>
-      <version>1.0</version>
-      <licenses>
-        <license>
-            <name>Creative Commons Attribution 2.5 License</name>
-            <url>http://creativecommons.org/licenses/by/2.5/</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-  
-
-  <supplement>
-    <project>
-      <groupId>xalan</groupId>
-      <artifactId>xalan</artifactId>
-      <version>2.7.0</version>
-      <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>          
-        </license>
-      </licenses>
-    </project>
-  </supplement>
-
- 
-</supplementalDataModels>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/pom.xml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/pom.xml b/component/viewer/scimpi/tck/pom.xml
deleted file mode 100644
index 0c71d86..0000000
--- a/component/viewer/scimpi/tck/pom.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>org.apache.isis.tck</groupId>
-        <artifactId>isis-tck</artifactId>
-        <version>1.9.0-SNAPSHOT</version>
-        <relativePath>../../../../tck/pom.xml</relativePath>
-    </parent>
-
-    <groupId>org.apache.isis.viewer</groupId>
-	<artifactId>isis-viewer-scimpi-tck</artifactId>
-	<name>Isis Scimpi Viewer TCK tests</name>
-	
-	<properties>
-        <isis-viewer-scimpi.version>1.0.0-SNAPSHOT</isis-viewer-scimpi.version>
-        <isis-objectstore-xml.version>1.0.0-SNAPSHOT</isis-objectstore-xml.version>
-        <isis-profilestore-xml.version>1.0.0-SNAPSHOT</isis-profilestore-xml.version>
-        <isis-security-file.version>1.6.0-SNAPSHOT</isis-security-file.version>
-
-        <siteBaseDir>..</siteBaseDir>
-        <relativeUrl>scimpi-tck/</relativeUrl>
-        <!-- until someone comes up with a better solution -->
-        <distMgmtSiteUrl>file:///tmp/m2-sites/isis/viewer/scimpi</distMgmtSiteUrl>
-    </properties>
-
-        <packaging>war</packaging>
-
-	<build>
-		<plugins>
-            <plugin>
-                <groupId>org.mortbay.jetty</groupId>
-                <artifactId>maven-jetty-plugin</artifactId>
-            </plugin>
-		</plugins>
-	</build>
-
-	<dependencies>
-	
-        <!-- other modules in this project -->
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-tck-dom</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-tck-fixture</artifactId>
-        </dependency>
-
-
-        <!-- isis non-core components -->
-        <dependency>
-            <groupId>org.apache.isis.viewer</groupId>
-            <artifactId>isis-viewer-scimpi-servlet</artifactId>
-            <version>${isis-viewer-scimpi.version}</version>
-        </dependency>
-
-
-        <!-- isis runtime -->
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-runtime</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-security</artifactId>
-        </dependency>
-        
-        <!-- to run using WebServer -->
-        <dependency>
-            <groupId>org.apache.isis.core</groupId>
-            <artifactId>isis-core-webserver</artifactId>
-            <scope>runtime</scope>
-            <optional>true</optional>
-        </dependency>
-
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/resources/images/Default.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/resources/images/Default.png b/component/viewer/scimpi/tck/src/main/resources/images/Default.png
deleted file mode 100644
index 8409e46..0000000
Binary files a/component/viewer/scimpi/tck/src/main/resources/images/Default.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/edit-selector.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/edit-selector.shtml b/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/edit-selector.shtml
deleted file mode 100644
index 724ac7a..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/edit-selector.shtml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title>Edit <swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2>Edit <swf:title /></h2>
-<swf:edit>
-	<swf:selector field="claimant" object="service:claimants" method="findEmployees" title="Employees..."/>
-	<swf:selector field="approver" object="service:claimants" method="findEmployees" title="Employees..."/>
-</swf:edit>
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-link.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-link.shtml b/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-link.shtml
deleted file mode 100644
index 406f42c..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-link.shtml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2><swf:title /></h2>
-<swf:short-form>
-	<swf:link name="claimant"/>
-</swf:short-form>
-
-<swf:methods/>
-
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-orig.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-orig.shtml b/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-orig.shtml
deleted file mode 100644
index deb6d66..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object-orig.shtml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2><swf:title /></h2>
-
-<swf:long-form />
-
-<swf:methods />
-
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object.shtml b/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object.shtml
deleted file mode 100644
index f1865ce..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object.shtml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2><swf:title /></h2>
-<swf:short-form>
-	<swf:exclude name="approver"/>
-</swf:short-form>
-
-<swf:methods>
-	<swf:exclude name="submit"/>
-</swf:methods>
-
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object2.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object2.shtml b/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object2.shtml
deleted file mode 100644
index f07c718..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/ToDoItem/object2.shtml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2><swf:title /></h2>
-<swf:short-form>
-</swf:short-form>
-
-<swf:methods>
-</swf:methods>
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/isis.properties
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/isis.properties b/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/isis.properties
deleted file mode 100644
index d8aab34..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/isis.properties
+++ /dev/null
@@ -1,54 +0,0 @@
-#  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.
-isis.services.prefix = org.apache.isis.tck.objstore.dflt
-isis.services =\
-    scalars.ApplibValuedEntityRepositoryDefault,\
-    scalars.JdkValuedEntityRepositoryDefault,\
-    scalars.PrimitiveValuedEntityRepositoryDefault,\
-    scalars.WrapperValuedEntityRepositoryDefault, \
-    simples.SimpleEntityRepositoryDefault,\
-    assocs.ParentEntityRepositoryDefault
-
-isis.fixtures.prefix= org.apache.isis.tck.fixture
-isis.fixtures=\
-    LogonAsSvenFixture,\
-    scalars.ApplibValuedEntityFixture,\
-    scalars.JdkValuedEntityFixture,\
-    scalars.PrimitiveValuedEntityFixture,\
-    scalars.WrapperValuedEntityFixture,\
-    simples.SimpleEntityFixture,\
-    assocs.ParentAndChildEntityFixture
-
-isis.exploration.users=sven, dick, bob
-
-
-
-isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.dflt.objectfactory.CglibObjectFactory
-#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.javassist.objectfactory.JavassistObjectFactory
-#isis.persistor.object-factory=org.apache.isis.runtimes.dflt.bytecode.identity.objectfactory.ObjectFactoryBasic
-
-
-isis.persistor.domain-object-container=org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault
-#isis.persistor.domain-object-container=org.apache.isis.progmodel.wrapper.metamodel.DomainObjectContainerWrapperFactory
-
-
-#isis.reflector.facets.include=org.apache.isis.runtimes.dflt.runtime.authorization.standard.AuthorizationFacetFactoryImpl
-#isis.authorization.learn=true
-
-
-isis.persistor=in-memory
-#isis.xmlos.dir=/tmp/xml
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/logging.properties
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/logging.properties b/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/logging.properties
deleted file mode 100644
index f2d65e6..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/logging.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-#  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.
-# apache's log4j is used to provide system logging.
-log4j.rootCategory=INFO, Console
-
-# The console appender
-log4j.appender.Console=org.apache.log4j.ConsoleAppender
-log4j.appender.Console.target=System.out
-log4j.appender.Console.layout=org.apache.log4j.PatternLayout
-log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE}  [%-20c{1} %-10t %-5p]  %m%n
-
-log4j.appender.File=org.apache.log4j.RollingFileAppender
-log4j.appender.File.file=isis.log
-log4j.appender.File.append=false
-log4j.appender.File.layout=org.apache.log4j.PatternLayout
-log4j.appender.File.layout.ConversionPattern=%d [%-20c{1} %-10t %-5p]  %m%n

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.allow
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.allow b/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.allow
deleted file mode 100644
index 928983a..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.allow
+++ /dev/null
@@ -1,16 +0,0 @@
-#  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.

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.passwords
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.passwords b/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.passwords
deleted file mode 100644
index 7f07af5..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/security_file.passwords
+++ /dev/null
@@ -1,20 +0,0 @@
-#  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.
-sven:pass
-dick:pass
-bob:pass
-joe:pass

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/web.xml b/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 3e61f54..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<web-app id="WebApp_ID" version="2.4"
-    xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
-    <display-name>Apache Isis S Viewer</display-name>
-
-    <welcome-file-list>
-        <welcome-file>index.shtml</welcome-file>
-    </welcome-file-list>
-
-    <listener>
-        <listener-class>org.apache.isis.core.webapp.IsisWebAppBootstrapper</listener-class>
-    </listener>
-
-    <context-param>
-        <param-name>isis.viewers</param-name>
-        <param-value>scimpi</param-value>
-    </context-param>
-
-    <servlet>
-        <servlet-name>dispatcher</servlet-name>
-        <servlet-class>org.apache.isis.viewer.scimpi.servlet.DispatcherServlet</servlet-class>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
-
-    <servlet-mapping>
-        <servlet-name>dispatcher</servlet-name>
-        <url-pattern>*.shtml</url-pattern>
-    </servlet-mapping>
-
-    <servlet-mapping>
-        <servlet-name>dispatcher</servlet-name>
-        <url-pattern>*.app</url-pattern>
-    </servlet-mapping>
-
-</web-app>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/debug.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/debug.shtml b/component/viewer/scimpi/tck/src/main/webapp/debug.shtml
deleted file mode 100644
index 93550cf..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/debug.shtml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:template file="style/template.shtml"/>
-
-<swf:services/>
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/generic/action.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/generic/action.shtml b/component/viewer/scimpi/tck/src/main/webapp/generic/action.shtml
deleted file mode 100644
index b72bb04..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/generic/action.shtml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title>Action <swf:action-name method="${method}"/></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2>${title}</h2>
-<swf:action-form method="${method}" view="_generic.shtml"/>
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/generic/collection.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/generic/collection.shtml b/component/viewer/scimpi/tck/src/main/webapp/generic/collection.shtml
deleted file mode 100644
index 823046f..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/generic/collection.shtml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:element-type /> Listing</swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2>${title}</h2>
-<swf:table link="_generic.shtml" />
- 
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/generic/edit.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/generic/edit.shtml b/component/viewer/scimpi/tck/src/main/webapp/generic/edit.shtml
deleted file mode 100644
index 6d47bfc..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/generic/edit.shtml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title>Edit <swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2>Edit <swf:title /></h2>
-<swf:edit />
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/generic/object.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/generic/object.shtml b/component/viewer/scimpi/tck/src/main/webapp/generic/object.shtml
deleted file mode 100644
index 18fa5da..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/generic/object.shtml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title><swf:title icon="no" /></swf:page-title>
-<swf:template  file="../style/template.shtml" />
-
-<h2><swf:title /></h2>
-<swf:long-form link="_generic.shtml" />
-
-<swf:methods />
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/Claim.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/Claim.png b/component/viewer/scimpi/tck/src/main/webapp/images/Claim.png
deleted file mode 100644
index 478f115..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/Claim.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/ClaimItem.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/ClaimItem.png b/component/viewer/scimpi/tck/src/main/webapp/images/ClaimItem.png
deleted file mode 100644
index d85fd82..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/ClaimItem.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/Employee.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/Employee.png b/component/viewer/scimpi/tck/src/main/webapp/images/Employee.png
deleted file mode 100644
index 6cf2bd4..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/Employee.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/banner-bg.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/banner-bg.png b/component/viewer/scimpi/tck/src/main/webapp/images/banner-bg.png
deleted file mode 100644
index 830e843..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/banner-bg.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/banner.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/banner.png b/component/viewer/scimpi/tck/src/main/webapp/images/banner.png
deleted file mode 100644
index f81e331..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/banner.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/images/logo.png
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/images/logo.png b/component/viewer/scimpi/tck/src/main/webapp/images/logo.png
deleted file mode 100644
index ea4cbc1..0000000
Binary files a/component/viewer/scimpi/tck/src/main/webapp/images/logo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/index.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/index.shtml b/component/viewer/scimpi/tck/src/main/webapp/index.shtml
deleted file mode 100644
index e9281cf..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/index.shtml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:page-title>Claims App</swf:page-title>
-
-<swf:template  file="style/template.shtml" />
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/login.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/login.shtml b/component/viewer/scimpi/tck/src/main/webapp/login.shtml
deleted file mode 100644
index a427a54..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/login.shtml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<swf:template  file="style/template.shtml" />
-
-<h2>Please Log On</h2>
-<swf:logon/>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/style/screen.css
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/style/screen.css b/component/viewer/scimpi/tck/src/main/webapp/style/screen.css
deleted file mode 100644
index f990946..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/style/screen.css
+++ /dev/null
@@ -1,394 +0,0 @@
-/*
- *  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.
- */
-BODY {
-	font-family: Arial, Sans-Serif;
-	margin: 0 0 10px 0;
-	color: black;
-	background-color: #f0f0f0;
-}
-
-/*
-* Banner
-*/
-div#banner {
-	background-image: url(../images/banner-bg.png);
-	background-repeat: repeat-x; 
-	width: 100%;
-	height: 120px;
-}
-
-/*
-* Content below banner
-*/
-div#content {
-	display: block;
-}
-
-div#content div#side {
-	display: inline;
-	float: left;
-	width: 150px;
-	padding: 25px 10px;
-}
-
-div#side ul {
-	margin: 0;
-	padding: 0;
-}
-
-div#side li {
-	display: block;
-	font-size: 80%;
-	padding: 4px 0;
-}
-
-div#content div#main{
-	padding: 1em;
-	float:left;
-	width:70%;
-}
-
-/*
-* Feedback area
-*/
-.feedback {
-	border: 2px solid red;
-	background-color: #ffccff;
-	padding: 20px 10px;
-}
-
-.warning {
-	color: red;
-	font-style:  italic;
-}
-
-.message {
-	color: blue;
-}
-
-.error {
-	color: red;
-	font-size: 80%;
-	padding-left:  6px;	
-}
-
-/*
-* Debug
-*/
-
-div.debug {
-	display: block;
-	padding: 10px;
-	border: 1px solid gray;
-	background-color: #ddd;
-}
-
-/*
-* Headings
-*/
-h1, h2, h3, h4 {
-	color: blue;
-}
-
-
-/*
-* Hyper links
-*/
-a {
-	color: blue;
-	text-decoration: none;
-}
-
-a:hover {
-	text-decoration: underline;
-}
-
-a:visted {
-	color: blue;
-	text-decoration: none;
-}
-
-/*
-* Icons
-*/
-img.title-icon {
-	height: 32px;
-	padding-right: 6px;
-}
-
-img.small-icon {
-	height: 16px;
-	padding-right: 6px;
-	vertical-align: text-bottom;
-}
-
-
-/*
-* Actions
-*/
-div.actions {
-	
-}
-
-div.actions div.actions {
-	border: 0px;
-	padding: 0px;
-}
-
-div.actions h2 {
-	font-size: 90%;
-}
-
-div.actions h3 {
-	font-size: 80%;
-}
-
-div.actions div.action,
-a.action
-{
-	padding 2px;
-	margin: 4px 0;
-	height: 1.6em;
-}
-
-div.action INPUT,
-div.action a,
-a.action,
-div.action span.disabled
-{
-	font-size: 80%;
-	background-color: silver;
-	border: 1px solid #333399;
-	background: url(../images/bg-button.gif);
-	background-repeat: repeat-x;
-}
-
-div.action INPUT[type="hidden"]
-{
-	background: none;
-	border: none;
-}
-
-div.action a,
-a.action,
-div.action span.disabled {
-	padding: 1px 10px;
-}
-
-.action INPUT, 
-a.action,
-.action a:link {
-	color: #000000;
-}
-
-.action INPUT, 
-a.action,
-.action a:visited {
-	color: #000000;
-}
-
-.action INPUT, 
-a.action,
-.action a:hover {
-	color: #000000;
-	text-decoration: none;
-}
-
-div.action span.disabled {
-	color: #555;
-}
-
-/*
-* Edit forms
-*/
-fieldset {
-	padding: 5px 10px;
-}
-
-fieldset div.field {
-	padding: 4px 0px;
-	min-height: 1.3em;
-}
-
-fieldset label {
-	float: left;
-	width:140px;
-	font-weight: bold;
-}
-
-fieldset input {
-	padding: 0px 0;
-}
-
-fieldset textarea {
-	font-family: Arial, Sans-Serif;
-}
-
-form input.button {
-	font-size: 80%;
-	background-color: silver;
-	border: 1px solid #333399;
-	background: url(../images/bg-button.gif);
-	background-repeat: repeat-x;
-	padding: 1px 0;
-}
-
-/*
-* Display forms
-*/
-div.form {
-	padding: 5px 0;
-}
-
-XXdiv.form * {
-	border: 1px solid red;
-}
-
-div.form div.field {
-	padding: 4px 6px;
-	min-height: 1.3em;
-}
-
-div.form div.odd-row {
-	background-color: #e7e7e7;
-}
-
-div.form div.even-row {
-	background-color:  #eee;
-}
-
-div.form span.label {
-	float: left;
-	font-weight: bold;
-}
-
-div.form span.value {
-	display: block;
-	padding-left: 12em;
-	max-width: 45em;
-}
-
-
-
-/*
-* collections
-*/
-
-#store .entry {
-	border-bottom: 1px dotted #7745FF;
-	padding: 10px 0;
-}
-	
-table {
-	border: 0px;
-	padding-bottom: 10px;
-}
-	
-th {
-	background-color: #bbb;
-}
-
-tr.odd-row {
-	background-color: #eee;
-}
-
-tr.even-row {
-	background-color: #e7e7e7;
-}
-
-td {
-	vertical-align: top;
-	padding: 4px 10px;
-}
-
-tr:hover {
-	border: 1px solid black; 
-	background-color: #eea;
-}
-
-
-
-
-
-/*
-* Application specific
-*/
-div.book {
-	padding-bottom: 10px;
-	border-bottom: 2px dashed;
-}
-
-div.cover {
-	float: left;
-	padding-right: 30px;
-	padding-bottom: 8px;
-}
-
-
-.title {
-	color: white;
-	font-size: 120%;
-	font-weight: bold;
-	margin-left: 5px;
-}
-	
-.description {}
-
-.price {
-	display: inline;
-	font-weight: bold;
-	text-align: left;
-	margin-right: 20px;
-}
-
-form, input {
-	display: inline;
-}
-
-
-div#cart {
-	float: 	right;
-	width: 160px;
-	font-size: 70%;
-	border: 1px solid gray;
-	margin: 10px;
-	padding: 10px;
-}
-
-div#cart ul {
-	padding: 0;
-	
-}
-
-div#cart li {
-	display: block;
-	padding-bottom: 4px;
-}
-
-
-
-form.selector fieldset {
-	margin-left: 45px;	
-	font-size: 80%;
-}
-
-form.selector legend {
-	font-style: italic;
-}
-

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/component/viewer/scimpi/tck/src/main/webapp/style/template.shtml
----------------------------------------------------------------------
diff --git a/component/viewer/scimpi/tck/src/main/webapp/style/template.shtml b/component/viewer/scimpi/tck/src/main/webapp/style/template.shtml
deleted file mode 100644
index 0774613..0000000
--- a/component/viewer/scimpi/tck/src/main/webapp/style/template.shtml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<title>${title}</title>
-<link rel="stylesheet" title="Style 1" href="${_context}/style/screen.css" type="text/css" media="all" />
-</head>
-
-<body id="demo">
-
-<div id="banner">
-	<div class="logo"><img src="images/logo.png"/></div>
-	<div class="title">To-Do App</div>
-</div>
-
-<div id="content">
-	<div id="side">
-        <swf:services />
-	</div>
-	<div id="main">
-        <swf:feedback />
-		<swf:content />
-		
-		<swf:diagnostics/>
-	</div>
-</div>
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/NOTICE
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/NOTICE b/mothballed/component/viewer/scimpi/NOTICE
new file mode 100644
index 0000000..ba21d0c
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/NOTICE
@@ -0,0 +1,7 @@
+Apache Isis
+Copyright 2010-2013 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/pom.xml
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/pom.xml b/mothballed/component/viewer/scimpi/dispatcher/pom.xml
new file mode 100644
index 0000000..3805c10
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/pom.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+        <groupId>org.apache.isis.viewer</groupId>
+	    <artifactId>isis-viewer-scimpi</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-viewer-scimpi-dispatcher</artifactId>
+
+	<name>Isis Scimpi Viewer Dispatcher</name>
+
+	<properties>
+        <siteBaseDir>..</siteBaseDir>
+		<relativeUrl>dispatcher/</relativeUrl>
+	</properties>
+
+    <!-- used in Site generation for relative references. -->
+    <url>http://isis.apache.org/${relativeUrl}</url>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+                <inherited>false</inherited>
+                <configuration>
+                	<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+                </configuration>
+                <reportSets>
+                    <reportSet>
+                        <inherited>false</inherited>
+                        <reports>
+                            <report>dependencies</report>
+                            <report>dependency-convergence</report>
+                            <report>plugins</report>
+                            <report>summary</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
+        </plugins>
+    </reporting>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-core-runtime</artifactId>
+		</dependency>
+
+        <dependency>
+            <groupId>dom4j</groupId>
+            <artifactId>dom4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.json</groupId>
+            <artifactId>json</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.htmlparser</groupId>
+            <artifactId>htmlparser</artifactId>
+        </dependency>
+            
+	</dependencies>
+</project>

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractElementProcessor.java
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractElementProcessor.java b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractElementProcessor.java
new file mode 100644
index 0000000..4869cc4
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractElementProcessor.java
@@ -0,0 +1,55 @@
+/*
+ *  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.isis.viewer.scimpi.dispatcher;
+
+import org.apache.isis.core.commons.config.ConfigurationConstants;
+import org.apache.isis.core.runtime.system.context.IsisContext;
+import org.apache.isis.viewer.scimpi.dispatcher.processor.Request;
+
+public abstract class AbstractElementProcessor implements ElementProcessor, Names {
+
+    private static final String SHOW_ICONS_BY_DEFAULT = ConfigurationConstants.ROOT + "scimpi.show-icons";
+
+    private final boolean showIconByDefault;
+
+    public AbstractElementProcessor() {
+        showIconByDefault = IsisContext.getConfiguration().getBoolean(SHOW_ICONS_BY_DEFAULT, false);
+    }
+
+    /**
+     * Return the Class for the class specified in the type attribute.
+     */
+    protected Class<?> forClass(final Request request) {
+        Class<?> cls = null;
+        final String className = request.getOptionalProperty(TYPE);
+        if (className != null) {
+            try {
+                cls = Class.forName(className);
+            } catch (final ClassNotFoundException e) {
+                throw new ScimpiException("No class for " + className, e);
+            }
+        }
+        return cls;
+    }
+
+    protected boolean showIconByDefault() {
+        return showIconByDefault;
+    }
+}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractObjectProcessor.java
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractObjectProcessor.java b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractObjectProcessor.java
new file mode 100644
index 0000000..97dd1ed
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/AbstractObjectProcessor.java
@@ -0,0 +1,53 @@
+/*
+ *  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.isis.viewer.scimpi.dispatcher;
+
+import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
+import org.apache.isis.core.metamodel.spec.feature.ObjectAssociation;
+import org.apache.isis.viewer.scimpi.dispatcher.processor.Request;
+
+public abstract class AbstractObjectProcessor extends AbstractElementProcessor {
+
+    @Override
+    public void process(final Request request) {
+        final String id = request.getOptionalProperty(OBJECT);
+        ObjectAdapter object = request.getContext().getMappedObjectOrResult(id);
+
+        final String field = request.getOptionalProperty(FIELD);
+        if (field != null) {
+            final ObjectAssociation objectField = object.getSpecification().getAssociation(field);
+            final String error = checkFieldType(objectField);
+            if (error != null) {
+                throw new ScimpiException("Field " + objectField.getId() + " " + error);
+            }
+            ResolveFieldUtil.resolveField(object, objectField);
+            object = objectField.get(object);
+        }
+
+        process(request, object);
+    }
+
+    protected String checkFieldType(final ObjectAssociation objectField) {
+        return null;
+    }
+
+    protected abstract void process(Request request, ObjectAdapter object);
+
+}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/Action.java
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/Action.java b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/Action.java
new file mode 100644
index 0000000..7bd6b26
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/Action.java
@@ -0,0 +1,37 @@
+/*
+ *  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.isis.viewer.scimpi.dispatcher;
+
+import java.io.IOException;
+
+import org.apache.isis.core.commons.debug.DebugBuilder;
+import org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext;
+
+public interface Action extends Names {
+
+    void process(RequestContext context) throws IOException;
+
+    String getName();
+
+    void init();
+
+    void debug(DebugBuilder debug);
+
+}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/BlockContent.java
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/BlockContent.java b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/BlockContent.java
new file mode 100644
index 0000000..836ae60
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/BlockContent.java
@@ -0,0 +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
+ *
+ *        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.isis.viewer.scimpi.dispatcher;
+
+public interface BlockContent {
+}

http://git-wip-us.apache.org/repos/asf/isis/blob/2c7cfbfe/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/DispatchException.java
----------------------------------------------------------------------
diff --git a/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/DispatchException.java b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/DispatchException.java
new file mode 100644
index 0000000..cc679ae
--- /dev/null
+++ b/mothballed/component/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/DispatchException.java
@@ -0,0 +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
+ *
+ *        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.isis.viewer.scimpi.dispatcher;
+
+public class DispatchException extends ScimpiException {
+    private static final long serialVersionUID = 1L;
+
+    public DispatchException() {
+    }
+
+    public DispatchException(final String message) {
+        super(message);
+    }
+
+    public DispatchException(final Throwable cause) {
+        super(cause);
+    }
+
+    public DispatchException(final String message, final Throwable cause) {
+        super(message, cause);
+    }
+
+}