code: @Override @SuppressWarnings("unchecked")
    public <T extends CMAResource> T setEnvironmentId(String environmentId) {
      return (T) setId(environmentId);
    }
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.