code: @SuppressWarnings("unchecked")
    public <T extends CMAResource> T setEnvironmentId(String environmentId) {
      if (getSystem().getEnvironment() == null) {
        getSystem().environment = new CMALink(CMAType.Environment);
      }
  
      getSystem().environment.setId(environmentId);
  
      return (T) this;
    }
docs: Convenience method for setting an environment id.
  
  @param environmentId the id to be set.
  @param <T>     An implementation of CMAResource, normally used for chaining setter methods.
  @return the calling {@link CMAResource} for chaining.