code: public String doGetRegistration()
      {
  
  
  		if (!isServerReady())
  		{
  			addActionError(ConfluenceGreenPepper.SERVER_NOCONFIGURATION);
  			readonly = true;
  			editMode = false;
  			addMode = false;
  			return SUCCESS;
  		}
  
  		try
          {
              final User activeUser = getRemoteUser();
  
              if (activeUser == null)
              {
                  addActionError(ConfluenceGreenPepper.ANONYMOUS_ACCESS_DENIED);
                  readonly = true;
                  editMode = false;
                  addMode = false;
                  return SUCCESS;
              }
  
              if (!gpUtil.getGreenPepperUserGroup().hasMembership(activeUser))
              {
                  addActionError(ConfluenceGreenPepper.USER_NOTMEMBEROF_GREENPEPPERUSERS_GROUP);
                  readonly = true;
                  editMode = false;
                  addMode = false;
                  return SUCCESS;
              }
  
  			if(StringUtil.isEmpty(projectName)) projectName	= getRegisteredRepository().getProject().getName();
              if(StringUtil.isEmpty(repositoryName)) repositoryName = getRegisteredRepository().getName();
              if(StringUtil.isEmpty(username)) username = getRegisteredRepository().getUsername();
              if(StringUtil.isEmpty(pwd)) pwd = getRegisteredRepository().getPassword();
  
  			checkRepositoryBaseUrl();
  
  			return doGetSystemUnderTests();
          }
          catch(GreenPepperServerException e)
          {
              if(editMode && StringUtil.isEmpty(projectName) && !isWithNewProject())
                  projectName = getProjects().iterator().next().getName();
  
              readonly = true;
          }
  
          return editMode ? doGetSystemUnderTests(): SUCCESS;
      }
docs: <p>doGetRegistration.</p>
  
  @return a {@link java.lang.String} object.