Registering required RPs from template metadata (1588437)

There is no logic change here. Everything works as before.