code: public static TaskGroupSpecification.Builder with(TaskGroupInformation info, String locale) {
  		Objects.requireNonNull(locale);
  		if (!info.matchesLocale(locale)) {
  			throw new IllegalArgumentException("Argument mismatch: " + info.getLocale() + " vs " + locale);
  		}
  		return new TaskGroupSpecification.Builder(info.getInputType(), info.getOutputType(), locale, info.getActivity());
  	}
docs: Creates a new task group specification builder with the current information and for the specified locale.
  @param info the task group information
  @param locale the locale
  @return returns a new task group specification builder
  @throws NullPointerException if locale is null
  @throws IllegalArgumentException if the locale specified in the task group information doesn't match the
  specified locale