code: public CMAEnvironment create(String spaceId, CMAEnvironment environment) {
      assertNotNull(spaceId, "spaceId");
      assertNotNull(environment, "environment");
      final String environmentId = environment.getId();
  
      final CMASystem system = environment.getSystem();
      environment.setSystem(null);
  
      try {
        if (environmentId == null) {
          return service.create(spaceId, environment).blockingFirst();
        } else {
          return service.create(spaceId, environmentId, environment).blockingFirst();
        }
      } finally {
        environment.setSystem(system);
      }
    }
docs: Create an environment using the given space id.
  <p>
  This method will override the configuration specified through
  {@link CMAClient.Builder#setSpaceId(String)}.
  
  @param spaceId     the id of the space to be used
  @param environment CMAEnvironment
  @return {@link CMAEnvironment} result instance
  @throws IllegalArgumentException if space id is null.
  @throws IllegalArgumentException if environment is null.