code: public synchronized void switchProject(String projectName) throws SDKException {
      try {
        this.projectId = getProjectIdForProjectName(projectName);
        // Set the agents to null so that no outdated agent is returned
        resetAgents();
      } catch (SDKException e) {
        throw new SDKException(
            "Could not switch to project " + projectName, e.getStackTraceElements(), e.getReason());
      }
    }
docs: Change the project related to this NFVORequestor. This is a convenient alternative for the
  {@link #setProjectId(String) setProjectId} method. It throws an SDKException if no project
  exists with the given projectName.
  
  @param projectName the name of the project to switch to
  @throws SDKException in case of exception