@Override
 public void handleFailure(Throwable caught) {
   GWT.log("There were errors at loading project configuration for " + projectId, caught);
   UIUtil.hideLoadProgessBar();
   MessageBox.showAlert(
       "Could not load the project configuration for this project"
           + " Message: "
           + caught.getMessage());
 }
    @Override
    public void handleSuccess(ProjectLayoutConfiguration config) {
      getProject().setProjectLayoutConfiguration(config);
      createOntolgyForm();
      doLayout();

      setInitialSelection();
      UIUtil.hideLoadProgessBar();
      long t1 = currentTime();
      GWT.log("Time to load project configuration: " + (t1 - t0) + "ms");
    }
 protected void createOntolgyForm() {
   Project project = ProjectManager.get().getProject(projectId).get();
   List<AbstractTab> tabs =
       project.getLayoutManager().createTabs(project.getProjectLayoutConfiguration());
   for (AbstractTab tab : tabs) {
     addTab(tab);
     updateTabStyle(tab);
   }
   if (tabs.size() > 0) {
     activate(0);
   }
   if (UIUtil.getBooleanConfigurationProperty(
       project.getProjectLayoutConfiguration(), SHOW_ONTOLOGY_TOOLBAR, true)) {
     createToolbarButtons();
   }
   doLayout();
 }
  private void selectTabWithName(String tabNameToSelect) {
    for (AbstractTab tab : tabs) {
      String tabName = tab.getClass().getName();
      tabName = tabName.substring(tabName.lastIndexOf(".") + 1);
      if (tabName.equals(tabNameToSelect)) {
        activate(tab.getId());
        doLayout();

        String selection = com.google.gwt.user.client.Window.Location.getParameter("id");
        if (selection != null) {
          selection = URL.decodeQueryString(selection);
          tab.setSelection(UIUtil.createCollection(new EntityData(selection)));
          break;
        }
      }
    }
  }
 private void getProjectConfiguration() {
   UIUtil.showLoadProgessBar("Loading Project", "Loading user interface configuration");
   ProjectConfigurationServiceManager.getInstance()
       .getProjectConfiguration(
           projectId, Application.get().getUserId(), new GetProjectConfigurationHandler());
 }