public class EmbeddedBootstrap
{
public void startAndDeployResources() throws Exception
{
Bootstrap bootstrap = Bootstrap.getInstance();
bootstrap.bootstrap();
if (resourceExists("seam.properties"))
{
bootstrap.deployResourceBases("seam.properties");
}
if (resourceExists("META-INF/components.xml"))
{
bootstrap.deployResourceBases("META-INF/components.xml");
}
if (resourceExists("META-INF/seam.properties"))
{
bootstrap.deployResourceBases("META-INF/seam.properties");
}
}