public void onSuccess(ArrayList<ProjectItem> items) {
   ProjectItems projectItems = new ProjectItems();
   projectItems.setItems(items);
   currentUser.setProjectItems(projectItems);
   userCtx.setCurrentUser(currentUser);
   GetPreferredProjectServiceAsync service = GetPreferredProjectService.Util.getInstance();
   service.getPreferredProject(currentUser.getUserId(), preferredProjectCallback);
 }
 public void onSuccess(HashMap<Integer, String> project) {
   if (project != null) {
     Set<Entry<Integer, String>> entrySet = project.entrySet();
     for (Entry<Integer, String> entry : entrySet) {
       currentUser.setPreferredProjectId(entry.getKey());
       currentUser.setPreferredProject(entry.getValue());
       Log.info("Upload Job: " + entry.getKey() + " " + entry.getValue());
     }
     userCtx.setCurrentUser(currentUser);
   }
   createComponent();
 }
 public UploadJob_BeforeAddingOverwrite(int tab) {
   String sessionID = Cookies.getCookie("sid");
   if (sessionID != null) {
     this.tab = tab;
     initWidget(vPanel);
     userCtx = (ClientContext) RPCClientContext.get();
     if (userCtx != null) {
       currentUser = userCtx.getCurrentUser();
       if (currentUser != null) {
         setProjects();
       }
     }
   } else {
     Login login = new Login();
     login.displayLoginBox();
   }
 }