code: protected void setPrefixes(final Collection<String> prefixesToSet) {
  		if (prefixesToSet == null) {
  			throw new IllegalArgumentException("The given prefixSet is not allowed to be null.");
  		}
  		final Set<String> newPrefixes = new TreeSet<String>();
  		for (final String prefixString : prefixesToSet) {
  			if (StringUtils.isNotBlank(prefixString)) {
  				newPrefixes.add(prefixString);
  			}
  		}
  		lock.writeLock().lock();
  		try {
  			prefixes = newPrefixes;
  			if (getPrefix() != null && !prefixes.contains(getPrefix())) {
  				defaultPrefix = null;
  				localPrefix.remove();
  			}
  		} finally {
  			lock.writeLock().unlock();
  		}
  	}
docs: Sets the prefixes.
  
  @param prefixesToSet
  the new prefixes