public static Map<Object, Object> getResources() {
        if (RESOURCES.get() == null) {
            return Collections.emptyMap();
        } else {
            return new HashMap<Object, Object>(RESOURCES.get());
        }
    }
Returns the ThreadLocal Map. This Map is used internally to bind objects
to the current thread by storing each object under a unique key.

@return the map of bound resources
core/src/main/java/org/apache/shiro/util/ThreadContext.java