/* */
/* 112 */ String mainClassName = getMainClassName(unit, true);
/* */
/* 114 */ Class mainClass = loadClass(unit, mainClassName);
/* */
/* 116 */ ClientENCInjectionContainer container = new ClientENCInjectionContainer(unit, metaData, mainClass, appClientName, unit.getClassLoader(), encCtx);
/* */
/* 119 */ unit.addAttachment(ClientENCInjectionContainer.class, container);
/* 120 */ getKernelAbstraction().install(container.getObjectName().getCanonicalName(), container.getDependencyPolicy(), container);
/* */ }
/* */ catch (Exception e)
/* */ {
/* 124 */ this.log.error("Could not deploy " + unit.getName(), e);
/* 125 */ undeploy(unit, metaData);