public EditTodoPopupWindow(BeanItem<Todo> currentBeanItem, String projectId) {
   this.currentBeanItem = currentBeanItem;
   this.projectId = projectId;
   todoService = (TodoService) ViewToolManager.getBean("todoService");
   teamService = (TeamService) SpringApplicationContextUtil.getContext().getBean("teamService");
   identityService = ProcessEngines.getDefaultProcessEngine().getIdentityService();
   initUI();
 }
  /**
   * @param upload The component that will serve this receiver
   * @param maxFileSize The maximum size of files that will be accepted (in bytes). -1 in case of no
   *     limit.
   */
  public InMemoryUploadReceiver(Upload upload, long maxFileSize) {
    this.upload = upload;
    this.maxFileSize = maxFileSize;
    this.notificationManager = ViewToolManager.getNotificationManager();

    upload.setReceiver(this);
    upload.addListener((StartedListener) this);
    upload.addListener((ProgressListener) this);
  }