private void initializeLayout() {
    if (!(vsr instanceof JDialog)) {
      UserInfo ui = pst.getApplicationUser();
      String userName = ui.getUsername();
      viewLayout = new MainFormLayout(getTitle(), "system1".equals(userName) ? " " : userName);

      JPanel formPanel = (JPanel) AttributeAccessor.get(vsr, "pnlMain");
      formPanel.putClientProperty("pnlMain", true);

      /*
                  JPanel footerPanel = (JPanel) AttributeAccessor.get(vsr, "footerPanel");
                  Component[]  components=footerPanel.getComponents();
                  for(int i=0;i<components.length;i++){
                      if(components[i] instanceof JLabel){
                          ((JLabel)components[i]).setBackground(new Color(-13395480));
                          ((JLabel)components[i]).setOpaque(true);
                          ((JLabel)components[i]).setForeground(new Color(-1));
                      }
                  }
      */

      viewLayout.contentPanel.add(formPanel, BorderLayout.CENTER);

      AbstractAction aa =
          new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
              if (logger.isDebugEnabled()) logger.debug("Closing view for " + pst);
              pst.closeView();
            }
          };

      if (pst instanceof FindPresenter || pst.isShowCloseButton()) {
        logger.info("Close button added to view");
        //                ((HeaderPanel) viewLayout.headerPanel).createCloseButton(aa);
      }
      addUserInfo();
    }
  }