MongoDB: Java REST and GridFS