System.setProperty("org.apache.cxf.nofastinfoset", "true");
String repository = System.getProperty("Xorg.apache.geronimo.repository.boot.path", "repository");
Maven2Repository bootRepository = new Maven2Repository(new File(geronimoHome, repository));
Collection<Repository> repositories = Collections.<Repository>singleton(bootRepository);
ArtifactResolver artifactResolver = new DefaultArtifactResolver(new DefaultArtifactManager(), bootRepository);
RepositoryConfigurationStore repositoryStore = new RepositoryConfigurationStore(bootRepository);
Collection<ConfigurationStore> repositoryStores = Collections.<ConfigurationStore>singleton(repositoryStore);
SimpleConfigurationManager manager = new SimpleConfigurationManager(repositoryStores, artifactResolver, repositories);
Artifact id = Artifact.create(CONFIG_ID);
id = artifactResolver.queryArtifact(id);
manager.loadConfiguration(id);
Configuration config = manager.getConfiguration(id);
// set context classloader