@UiFactory
 FormPanel createFormPanel() {
   FormPanel form = new FormPanel();
   form.setAction(fileUploadServlet);
   form.setMethod(Method.POST);
   form.setEncoding(Encoding.MULTIPART);
   form.setSize(FORM_WIDTH, FORM_HEIGHT);
   return form;
 }
  /**
   * Creates panel storing selector used to select type of the molecular viewer.
   *
   * @return panel with viewer selector
   */
  private VBoxLayoutContainer createViewerTypePanelLocation() {
    VBoxLayoutContainer viewerTypePanelLocation = new VBoxLayoutContainer();
    viewerTypePanelLocation.setBorders(false);

    VBoxLayoutContainer vBoxLayout = new VBoxLayoutContainer();
    vBoxLayout.setVBoxLayoutAlign(VBoxLayoutAlign.LEFT);

    FormPanel viewerTypePanel = new FormPanel();
    viewerTypePanel.setBorders(false);
    viewerTypePanel.setWidth(100);
    viewerTypePanel.getElement().setPadding(new Padding(0));

    ComboBox<String> viewerTypeComboBox = createViewerTypeCombobox();
    FieldLabel viewerTypeComboBoxLabel =
        new FieldLabel(
            viewerTypeComboBox, AppPropertiesManager.CONSTANTS.results_grid_viewer_combo_label());
    viewerTypeComboBox.setStyleName("eppic-default-label");
    viewerTypePanel.add(viewerTypeComboBoxLabel);

    viewerTypePanelLocation.add(viewerTypePanel);

    return viewerTypePanelLocation;
  }
    @Override
    public void markDuplicates(Collection<String> duplicates) {
      if ((duplicates != null) && !duplicates.isEmpty()) {
        for (String id : duplicates) {
          destResourceMap.get(id).markInvalid(I18N.ERROR.fileExist());
        }
      } else {
        for (IPCFileUploadField field : destResourceMap.values()) {
          int index = fufList.indexOf(field);
          statList.get(index).setBusy("");
          FormPanel form = formList.get(index);
          form.addSubmitHandler(
              new SubmitHandler() {

                @Override
                public void onSubmit(SubmitEvent event) {
                  getOkButton().disable();
                }
              });
          form.submit();
          submittedForms.add(form);
        }
      }
    }