}
String filename = jsonObject.getString("filename");
String contentType = jsonObject.getString("contentType");
JsonObject metadata = jsonObject.getObject("metadata");
String metadataStr = metadata == null ? null : metadata.encode();
// TODO Store metadata as a map?
BoundStatement query = insertFile.bind(id, length, chunkSize, uploadDate, filename, contentType, metadataStr);
executeQuery(query, message, new FutureCallback<ResultSet>() {