ContainerMain is a launcher in a same sense than what XdYarnContainer is. This means we need to do these tricks order to embed xd components inside Yarn. Answer to you question, no it can't.