I don't think this will work because `pattern.name` is a path, but register expect a namespace. Am I missing something?