Do API embedding in chunks to workaround timeouts of requests of the jetty server in neo4j.