// now try to deploy the array of spring context files
springDeployer.deploy(springContextFiles);
// Poll the deployer for the initialization status. Wait for either successful
// initialization or failure.
while (!springDeployer.isInitialized() ) {
if ( springDeployer.initializationFailed()) {
throw new ResourceInitializationException();
}
synchronized (springDeployer) {
springDeployer.wait(100);
}