Added support for clustering with recluster, and added domains support on connect middlewares