/**
   * Create the panel.
   *
   * @return
   */
  public JComponent create(OrganizationalLogs logs) {
    factory = SlickerFactory.instance();

    splitPanel = new ProMSplitPane(ProMSplitPane.VERTICAL_SPLIT);
    splitPanel.setBackground((Color.white));
    splitPanel.setBorder(BorderFactory.createEmptyBorder());
    splitPanel.setDividerLocation(0.5);
    ProMSplitPane headerPanel = createHeaderPanel(logs, factory);
    splitPanel.setTopComponent(headerPanel);

    return splitPanel;
  }
  /**
   * Create header panel
   *
   * @param logs
   * @param factory
   * @return
   */
  private ProMSplitPane createHeaderPanel(final OrganizationalLogs logs, SlickerFactory factory) {
    ProMSplitPane headerPanel = new ProMSplitPane(ProMSplitPane.HORIZONTAL_SPLIT);

    {
      JTextPane headerExplanation = new JTextPane();
      headerExplanation.setContentType("text/html");
      headerExplanation.setText(
          fontBlack6
              + "Mismatch Pattern Analysis without Performance Clustering</font><hr>"
              + fontBlack4
              + " Select an organization from left and click \"Analyze\" to list mismatch patterns compared to other organizations.");
      headerExplanation.setEditable(false);
      headerExplanation.setBackground(null);
      headerPanel.setRightComponent(headerExplanation);
    }

    {
      JPanel headerLeftPanel = new JPanel();
      headerLeftPanel.setBackground(null);
      headerLeftPanel.setLayout(new GridBagLayout());
      {
        List<String> organizationList = new ArrayList<String>();
        if (logs != null) {

          organizationList.addAll(logs.organizationNames);
        }
        organizationCombo = factory.createComboBox(organizationList.toArray());

        GridBagConstraints organizationComboConstraint = new GridBagConstraints();
        organizationComboConstraint.gridx = 0;
        organizationComboConstraint.gridy = 1;

        organizationComboConstraint.anchor = GridBagConstraints.WEST;

        organizationCombo.addActionListener(
            (new ActionListener() {
              public void actionPerformed(ActionEvent arg0) {
                organizationName = (String) organizationCombo.getSelectedItem();
              }
            }));
        headerLeftPanel.add(organizationCombo, organizationComboConstraint);
      }
      {
        JLabel organizationComboLabel = factory.createLabel("Organization");
        GridBagConstraints organizationComboLabelConstraint = new GridBagConstraints();
        organizationComboLabelConstraint.gridx = 0;
        organizationComboLabelConstraint.gridy = 0;
        organizationComboLabelConstraint.fill = GridBagConstraints.HORIZONTAL;
        headerLeftPanel.add(organizationComboLabel, organizationComboLabelConstraint);
      }

      {
        JButton analyzeButton = factory.createButton("Analyze");
        GridBagConstraints analyzeButtonConstraint = new GridBagConstraints();
        analyzeButtonConstraint.gridx = 0;
        analyzeButtonConstraint.gridy = 3;
        analyzeButtonConstraint.gridwidth = 3;
        analyzeButtonConstraint.fill = GridBagConstraints.HORIZONTAL;
        analyzeButtonConstraint.anchor = GridBagConstraints.WEST;
        analyzeButton.addActionListener(
            (new ActionListener() {
              public void actionPerformed(ActionEvent arg0) {
                organizationName = (String) organizationCombo.getSelectedItem();
                if (!(organizationName.equals("Select") || organizationName.equals(""))) {
                  System.out.println(organizationName + " " + performanceDifferentThresholdValue);
                  analyzeClicked(logs);
                }
              }
            }));
        headerLeftPanel.add(analyzeButton, analyzeButtonConstraint);
      }
      headerPanel.setLeftComponent(headerLeftPanel);
    }
    return headerPanel;
  }