code: private void addLocalCandidate(LocalCandidateWrapper candidateWrapper, boolean sort) {
  		IceCandidate candidate = candidateWrapper.getCandidate();
  
  		// Configure the candidate before registration
  		candidate.setPriority(calculatePriority(candidate));
  
  		synchronized (this.localCandidates) {
  			if (!this.localCandidates.contains(candidateWrapper)) {
  				this.localCandidates.add(candidateWrapper);
  				sortCandidates();
  			}
  		}
  	}
docs: Attempts to registers a local candidate.
  
  @param candidateWrapper
  The wrapper that contains the local ICE candidate
  @param sort
  Decides whether the candidates list should be ordered after
  insert