locate a role with the corresponding name and generate it with the given resource, ${resource}
in the model will be replaced with this resource string, if this resource does not exist, it
will be created.
model templates specify a role and its corresponding
permissions, child roles and parent roles to link to,
however
they are generated at runtime with additional input
update the role from templateId from oldResource to newResource
NOTE: this requires removal and creation of the role since the jdo store does not tolerate renaming
because of the use of the name as an identifier
allows for a role coming from a template to be renamed effectively swapping out the bits of it that
were labeled with the oldResource with the newResource
it also manages any user assignments for that role