GerritServer gerritServer = PluginImpl.getInstance().getServer(PluginImpl.DEFAULT_SERVER_NAME);
gerritServer.getConfig().setNumberOfSendingWorkerThreads(3);
final int nrOfJobs = 3;
FreeStyleProject project = DuplicatesUtil.createGerritTriggeredJob(j, "projectX");
project.getBuildersList().add(new SleepBuilder(1000));
project.save();
for (int i = 0; i < nrOfJobs; i++) {
String name = String.format("project%d", i);
FreeStyleProject copyProject = (FreeStyleProject)j.jenkins.copy((TopLevelItem)project, name);
boolean mode = (i & 1) == 0; // true for even numbers
copyProject.getTrigger(GerritTrigger.class).setSilentStartMode(mode);