code: public void addCorrespondingSipApplicationSession(MobicentsSipApplicationSessionKey newApplicationSession, MobicentsSipApplicationSessionKey correspondingSipApplicationSession, String headerName) {
  		if(headerName.equalsIgnoreCase(JoinHeader.NAME)) {
  			joinApplicationSession.putIfAbsent(newApplicationSession, correspondingSipApplicationSession);
  		} else if (headerName.equalsIgnoreCase(ReplacesHeader.NAME)) {
  			replacesApplicationSession.putIfAbsent(newApplicationSession, correspondingSipApplicationSession);
  		} else {
  			throw new IllegalArgumentException("headerName argument should either be one of Join or Replaces");
  		}
  	}
docs: Add a mapping between a new session and a corresponding sipSession related to a headerName. See Also getCorrespondingSipSession method.
  @param newSession the new session
  @param correspondingSipSession the corresponding sip session to add
  @param headerName the header name