public final void init(final String suName, final String suRootPath) throws DeploymentException {
LOG.info(new Message("SU.MANAGER.INIT", LOG) + suName + " path: " + suRootPath);
if (suName == null) {
throw new DeploymentException(new Message("SU.NAME.NULL", LOG).toString());
}
if (suName.length() == 0) {
throw new DeploymentException(new Message("SU.NAME.EMPTY", LOG).toString());
}
if (suRootPath == null) {
throw new DeploymentException(new Message("SU.ROOT.NULL", LOG).toString());
}
if (suRootPath.length() == 0) {
throw new DeploymentException(new Message("SU.ROOT.EMPTY", LOG).toString());
}
try {
Thread.currentThread().setContextClassLoader(componentParentLoader);
CXFServiceUnit csu = new CXFServiceUnit(bus, suRootPath, componentParentLoader);
csu.prepare(ctx);
serviceUnits.put(suName, csu);
} catch (Exception ex) {
ex.printStackTrace();
throw new DeploymentException(ex);
}
}