@Inject
 public LaneMoveHandler(
     HasArea environment,
     EnvironmentServiceProvider serviceProvider,
     EnvironmentSharedStateAccess sharedState,
     EventBus eb,
     @Named("params.nonStopMode") int nonStopMode)
     throws UnavailableServiceException {
   super(environment, serviceProvider, sharedState);
   this.eventBus = eb;
   eb.subscribe(this);
   this.roadEnvironmentService =
       serviceProvider.getEnvironmentService(RoadEnvironmentService.class);
   this.speedService = serviceProvider.getEnvironmentService(SpeedService.class);
   this.nonStopMode = nonStopMode;
 }
  /**
   * Constructor
   *
   * @param serviceProvider Environment
   * @throws UnavailableServiceException if any.
   */
  @Inject
  public NotifyAllocationStatusHandler(EnvironmentServiceProvider serviceProvider) {

    try {
      this.consumptionEnv = serviceProvider.getEnvironmentService(ConsumptionEnv.class);
    } catch (UnavailableServiceException ex) {
      java.util.logging.Logger.getLogger(DemandActionHandler.class.getName())
          .log(Level.SEVERE, null, ex);
    }
  }