getResourceByName did not take Realm into account, same name can exist but only once within each Realm.