@Override
 public void onSummaryReceived(SummaryReceivedEvent event) {
   if (getOriginalVariable() != null
       && event.getResourceUri().equals(getOriginalVariable().getLink() + "/summary")) {
     SummaryStatisticsDto dto = event.getSummary();
     if (dto.getExtension(ContinuousSummaryDto.SummaryStatisticsDtoExtensions.continuous)
         != null) {
       ContinuousSummaryDto continuous =
           dto.getExtension(ContinuousSummaryDto.SummaryStatisticsDtoExtensions.continuous)
               .cast();
       double from = continuous.getSummary().getMin();
       double to = continuous.getSummary().getMax();
       getView().setValueLimits((long) from, (long) (to + 1));
     }
   }
 }
 @Override
 protected void onBind() {
   getView().setSummaryTabWidget(summaryTabPresenter.getView());
   registerHandler(
       getEventBus()
           .addHandler(
               SummaryReceivedEvent.getType(), new OriginalVariableSummaryReceivedHandler()));
   registerHandler(getView().addValueMapEntryHandler(new AddValueMapEntryHandler()));
 }