Fixing a NullPointerException on Resource.getUnique