private static String buildDigest(NettyTransferService<HttpProtocolInfo>.NettyMoverChannel file) { FileAttributes attributes = file.getFileAttributes(); return attributes.getChecksumsIfPresent().transform(TO_RFC3230).or(""); }