}
archivePath = archivePath.replace('\\', '/' );
AbstractArchive archive = (new ArchiveFactory()).openArchive(archivePath);
DeploymentFacility df= DeploymentFacilityFactory.getLocalDeploymentFacility();
JESProgressObject progressObject = null;
progressObject = df.deploy(df.createTargets(targets), archive, null , props); //null for deployment plan
DeploymentStatus status = null;
do {
status = progressObject.getCompletedStatus();
if(status == null) {
try {
Thread.currentThread().sleep(1000);
} catch(InterruptedException ie) {
}