*/
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())) {
throw new Failure("The configuration name you have chosen is already taken, please choose a unique name.");
}
PluginImpl.getPlugin().getGlobalConfigurations().add(conf);
PluginImpl.getPlugin().save();
rsp.sendRedirect2("configurations");