* This method treats the absence of the offline lock status header as the
* status "unsupported". Therefore, this should only be used on POST actions
* that are expected to return the header (e.g., lock actions).
*/
private static OfflineLockStatus getOfflineLockStatus(URLConnection conn) {
OfflineLockStatus status = OfflineLockStatus.Unsupported;
try {
String statusHeader = conn.getHeaderField(OFFLINE_LOCK_HEADER);
if (StringUtils.hasValue(statusHeader))
status = OfflineLockStatus.valueOf(statusHeader);
} catch (Exception e) {