277278279280281282283284285286287288289
try { if (type.equals("ears")) { ObjectName pattern = new ObjectName("resin:type=EarDeploy,*"); for (Object proxy : Jmx.query(pattern)) { EarDeployMXBean earDeploy = (EarDeployMXBean) proxy; earDeploy.deploy(name); return statusMessage(gitPath); } }