*/
public void queueBuildStarted(AbstractBuild build, TaskListener listener,
GerritTriggeredEvent event, BuildsStartedStats stats) {
String serverName = getServerName(event);
if (serverName != null) {
IGerritHudsonTriggerConfig config = getConfig(serverName);
if (config != null) {
if (config.isUseRestApi() && event instanceof ChangeBasedEvent) {
GerritSendCommandQueue.queue(new BuildStartedRestCommandJob(config, build, listener,
(ChangeBasedEvent)event, stats));
} else {
GerritSendCommandQueue.queue(new BuildStartedCommandJob(config, build, listener, event, stats));
}