It isn't a good idea to assign a datastore variable in code since they are designed to store user provided data. If the user provides URIPATH use this one. If not, generate one randomly. Something like:

```ruby
if datastore['URIPATH'] 
     uri_path = datasotre['URIPATH']
else
     uri_path = rand_text_alphanumeric(4)
end
```

And use uri_path