/* */ }
/* */
/* */ public void applyTemplate(ManagedDeployment.DeploymentPhase phase, String deploymentBaseName, DeploymentTemplateInfo info)
/* */ throws Exception
/* */ {
/* 588 */ DeploymentTemplate template = (DeploymentTemplate)this.templates.get(info.getName());
/* 589 */ if (template == null)
/* */ {
/* 591 */ this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchTemplate"));
/* 592 */ Object[] args = { info.getName() };
/* 593 */ String msg = this.formatter.format(args);
/* 594 */ throw new IllegalStateException(msg);
/* */ }
/* */
/* 598 */ VirtualFile root = this.activeProfile.getRootFile(phase);
/* 599 */ if (log.isTraceEnabled())
/* 600 */ log.trace("applyTemplate, profile=" + this.activeProfile + ", deploymentBaseName=" + deploymentBaseName + ", phase=" + phase + ", info=" + info);
/* 601 */ VirtualFile vf = template.applyTemplate(root, deploymentBaseName, info);
/* 602 */ VFSDeployment ctx = this.deploymentFactory.createVFSDeployment(vf);
/* 603 */ this.activeProfile.addDeployment(ctx, phase);
/* 604 */ this.mainDeployer.addDeployment(ctx);
/* 605 */ template.updateTemplateDeployment(ctx, info);
/* 606 */ this.mainDeployer.process();
/* */
/* 609 */ Map mos = this.mainDeployer.getManagedObjects(ctx.getName());
/* 610 */ log.debug("applyTemplate, profile=" + this.activeProfile + ", deploymentBaseName=" + deploymentBaseName + ", phase=" + phase + ", :" + mos);
/* 611 */ for (ManagedProperty prop : info.getProperties().values())