@Override public Request<RunnerStatus> run(ProjectReference projectReference){
  String projectName=projectReference.name();
  List<DummyRunnerStatus> statuses=availableRunnerStatuses.get(projectName);
  DummyRunnerStatus runnerStatus=null;
  if (statuses == null || statuses.isEmpty()) {
    runnerStatus=null;
  }
 else {
    runnerStatus=statuses.get(runnerStatusIndex);
    runnerStatus.setStatus(RunnerState.RUNNING);
    List<DummyRunnerStatus> currents=currentRunnerStatuses.get(projectName);
    if (currents == null) {
      currents=new ArrayList<>();
      currentRunnerStatuses.put(projectName,currents);
    }
    currents.add(runnerStatus);
  }
  return new DummyRequest<RunnerStatus>(runnerStatus);
}

@ Override public Request < RunnerStatus > run ( ProjectReference projectReference ) { String projectName = projectReference . name ( ) ; List < DummyRunnerStatus > statuses = availableRunnerStatuses . get ( projectName ) ; DummyRunnerStatus runnerStatus = null ; if ( statuses == null || statuses . isEmpty ( ) ) { runnerStatus = null ; } else { runnerStatus = statuses . get ( runnerStatusIndex ) ; runnerStatus . setStatus ( RunnerState . RUNNING ) ; List < DummyRunnerStatus > currents = currentRunnerStatuses . get ( projectName ) ; if ( currents == null ) { currents = new ArrayList < > ( ) ; currentRunnerStatuses . put ( projectName , currents ) ; } currents . add ( runnerStatus ) ; } return new DummyRequest < RunnerStatus > ( runnerStatus ) ; }
runs the given project with a codenvy runner .
