@Override
    public void setRootPath(String rootPath) {
        this.root = rootPath;
        if (root.equals("/"))
            root = "";
        else if (root.length() > 1){
            if (root.startsWith("/")){
                root = root.substring(1);
            }
            if (!root.endsWith("/"))
                root += "/";
        }
    }
The <code>ClasspathLocator</code> looks up an asset in the classpath.

This locator is used by default in all jME3 projects (unless 
{@link AssetManager#unregisterLocator(java.lang.String, java.lang.Class) unregistered}).
Unlike Java's default resource loading mechanism, the <code>ClasspathLocator</code>
enforces case-sensitivity on platforms which do not have it such as Windows.
Therefore, it is critical to provide a path matching the case of the file on
the filesystem. This also ensures that the file can be loaded if it was
later included in a <code>.JAR</code> file instead of a folder.

@author Kirill Vainer
jme3-core/src/plugins/java/com/jme3/asset/plugins/ClasspathLocator.java