Registering required RPs from template metadata (1588437, 2002449)

fixed