public void removeLocator(final Class<? extends AssetLocator> locatorType, String rootPath) {
        ArrayList<ImplThreadLocal<AssetLocator>> locatorsToRemove = new ArrayList<>();
        Iterator<ImplThreadLocal<AssetLocator>> it = locatorsList.iterator();

        while (it.hasNext()) {
            ImplThreadLocal<AssetLocator> locator = it.next();
            if (locator.getPath().equals(rootPath)
                    && locator.getTypeClass().equals(locatorType)) {
                //it.remove();
                // copy on write list doesn't support iterator remove,
                // must use temporary list
                locatorsToRemove.add(locator);
            }
        }

        locatorsList.removeAll(locatorsToRemove);
    }
Returns the AssetLoader registered for the given extension
of the current thread.
@return AssetLoader registered with addLoader.
jme3-core/src/main/java/com/jme3/asset/ImplHandler.java