Haven't looked too much into this, but it looks like you can POST multipart form data, but not PUT it.
Can we just change the Replacement class to accept AbstractContent instead of Content and the put method in Resty to accept AbstractContent instead of Content?