@SuppressWarnings("unchecked")
    public void registerLocator(String rootPath, String clsName) {
        Class<? extends AssetLocator> clazz = null;
        try {
            clazz = (Class<? extends AssetLocator>) Class.forName(clsName);
        } catch (ClassNotFoundException ex) {
            logger.log(Level.WARNING, "Failed to find locator: " + clsName, ex);
        } catch (NoClassDefFoundError ex) {
            logger.log(Level.WARNING, "Failed to find loader: " + clsName, ex);
        }
        if (clazz != null) {
            registerLocator(rootPath, clazz);
        }
    }
<code>AssetManager</code> is the primary method for managing and loading
assets inside jME.

@author Kirill Vainer
jme3-core/src/main/java/com/jme3/asset/DesktopAssetManager.java