getResources now uses getCurrentRealm rather than null.