RESTWS-359: Deadlock while loading resources