pull in entity as byte array, before stream is closed
close stream
add fromJson that takes a JavaType