In createNameArray, rename argument name to uri.