HeaderSet hs = null;
try {
switch (mDir) {
case ROOT:
case DOWN:
hs = session.setPath(mHeaderSet, false, false);
break;
case UP:
hs = session.setPath(mHeaderSet, true, false);
break;
}
mResponseCode = hs.getResponseCode();
} catch (IOException e) {
mResponseCode = ResponseCodes.OBEX_HTTP_INTERNAL_ERROR;
}