/** {@inheritDoc} */
public DialogContext create(FacesContext context, String name, DialogContext parent) {
// Obtain the dialog metadata for the specified dialog
DialogMetadata dialog = (DialogMetadata) dialogs(context).get(name);
if (dialog == null) {
throw new IllegalArgumentException("No definition for dialog name '"
+ name + "' can be found");
}