Hudson.getInstance().checkPermission(getRequiredPermission());
rsp.sendRedirect2("add");
}</BUG>
public void doCreate(StaplerRequest req, StaplerResponse rsp) throws Exception {
<BUG>Hudson.getInstance().checkPermission(getRequiredPermission());
SeleniumGlobalConfiguration conf = req.bindJSON(SeleniumGlobalConfiguration.class, req.getSubmittedForm());</BUG>
if (null == conf.getName() || conf.getName().trim().equals("")) {
throw new Failure("You must specify a name for the configuration");
}
if (PluginImpl.getPlugin().hasGlobalConfiguration(conf.getName())) {

Hudson.getInstance().checkPermission(getRequiredPermission());
}
public boolean isAdmin() {
return Hudson.getInstance().hasPermission(getRequiredPermission());
}
public void doCreate(StaplerRequest req, StaplerResponse rsp) throws Exception {
validateAdmin();
SeleniumGlobalConfiguration conf = req.bindJSON(SeleniumGlobalConfiguration.class, req.getSubmittedForm());
if (null == conf.getName() || conf.getName().trim().equals("")) {
throw new Failure("You must specify a name for the configuration");
}
if (PluginImpl.getPlugin().hasGlobalConfiguration(conf.getName())) {
