*getMethod(restrictionName, methodName).isRestartRequired()* is a more flexible option.