How can I run Elastic Search 5.0 in embed mode?

This blog post contains a discussion about embedding Elasticsearch 5.0. While it may be possible, it is no longer supported.