if (addIfHeader) {
checkSessionInfo(sessionInfo);
String[] locktokens = ((SessionInfoImpl) sessionInfo).getAllLockTokens();
// TODO: ev. build tagged if header
if (locktokens != null && locktokens.length > 0) {
IfHeader ifH = new IfHeader(locktokens);
method.setRequestHeader(ifH.getHeaderName(), ifH.getHeaderValue());
}
}
initMethod(method, sessionInfo);
}