Source:
public static BlobProperties buildBlobProperties(Map<String, Object> args) throws RestServiceException { String blobSizeStr = null; long blobSize; try { blobSizeStr = getHeader(args, Headers.BLOB_SIZE, true); blobSize = Long.parseLong(blobSizeStr); if (blobSize < 0) { throw new RestServiceException(Headers.BLOB_SIZE + "[" + blobSize + "] is less than 0", RestServiceErrorCode.InvalidArgs); } } catch (NumberFormatException e) { System.out.println("WHAT HAPPENED? " + e); throw new RestServiceException(Headers.BLOB_SIZE + "[" + blobSizeStr + "] could not parsed into a number", RestServiceErrorCode.InvalidArgs); } long ttl = Utils.Infinite_Time; String ttlStr = getHeader(args, Headers.TTL, false); if (ttlStr != null) { try { ttl = Long.parseLong(ttlStr); if (ttl < -1) { throw new RestServiceException(Headers.TTL + "[" + ttl + "] is not valid (has to be >= -1)", RestServiceErrorCode.InvalidArgs); } } catch (NumberFormatException e) { throw new RestServiceException(Headers.TTL + "[" + ttlStr + "] could not parsed into a number", RestServiceErrorCode.InvalidArgs); } } boolean isPrivate; String isPrivateStr = getHeader(args, Headers.PRIVATE, false); if (isPrivateStr == null || isPrivateStr.toLowerCase().equals("false")) { isPrivate = false; } else if (isPrivateStr.toLowerCase().equals("true")) { isPrivate = true; } else { throw new RestServiceException( Headers.PRIVATE + "[" + isPrivateStr + "] has an invalid value (allowed values:true, false)", RestServiceErrorCode.InvalidArgs); } String serviceId = getHeader(args, Headers.SERVICE_ID, true); String contentType = getHeader(args, Headers.AMBRY_CONTENT_TYPE, true); String ownerId = getHeader(args, Headers.OWNER_ID, false); return new BlobProperties(blobSize, serviceId, ownerId, contentType, isPrivate, ttl); }

Target:
public static BlobProperties buildBlobProperties(Map<String, Object> args) throws RestServiceException { String blobSizeStr = null; long blobSize; try { blobSizeStr = getHeader(args, Headers.BLOB_SIZE, true); blobSize = Long.parseLong(blobSizeStr); if (blobSize < 0) { throw new RestServiceException(Headers.BLOB_SIZE + "[" + blobSize + "] is less than 0", RestServiceErrorCode.InvalidArgs); } } catch (NumberFormatException e) { throw new RestServiceException(Headers.BLOB_SIZE + "[" + blobSizeStr + "] could not parsed into a number", RestServiceErrorCode.InvalidArgs); } long ttl = Utils.Infinite_Time; String ttlStr = getHeader(args, Headers.TTL, false); if (ttlStr != null) { try { ttl = Long.parseLong(ttlStr); if (ttl < -1) { throw new RestServiceException(Headers.TTL + "[" + ttl + "] is not valid (has to be >= -1)", RestServiceErrorCode.InvalidArgs); } } catch (NumberFormatException e) { throw new RestServiceException(Headers.TTL + "[" + ttlStr + "] could not parsed into a number", RestServiceErrorCode.InvalidArgs); } } boolean isPrivate; String isPrivateStr = getHeader(args, Headers.PRIVATE, false); if (isPrivateStr == null || isPrivateStr.toLowerCase().equals("false")) { isPrivate = false; } else if (isPrivateStr.toLowerCase().equals("true")) { isPrivate = true; } else { throw new RestServiceException( Headers.PRIVATE + "[" + isPrivateStr + "] has an invalid value (allowed values:true, false)", RestServiceErrorCode.InvalidArgs); } String serviceId = getHeader(args, Headers.SERVICE_ID, true); String contentType = getHeader(args, Headers.AMBRY_CONTENT_TYPE, true); String ownerId = getHeader(args, Headers.OWNER_ID, false); return new BlobProperties(blobSize, serviceId, ownerId, contentType, isPrivate, ttl); }