code: public void addPreferredLanguages(String preferredLanguages) {
          if (preferredLanguages != null && !preferredLanguages.trim().isEmpty()) {
              setPreferredLanguages(Arrays.asList(preferredLanguages.split(",")));
          }
      }
docs: Convenience method.
  
  @param preferredLanguages the preferred language(s) separated with ','