Map fileTree types to new custom binary types.
Convert resources to strings in EntityModel.
Catch serializer exceptions.