Creating a link in a certain group

Is this the recommended way of creating a link inside a specific group? Or is there a better way of doing it?

tell application “DEVONthink Pro”
set newLocation to create location “/•Nytt”
create record with {name:currentName, type:nexus, URL:currentURL} in newLocation
end tell

Yes, that’s usuallly the recommended way as “create location” creates groups only if necessary or returns existing ones.