public final String deploy(final String suName, final String suRootPath) throws DeploymentException {
LOG.info(new Message("SU.MANAGER.DEPLOY", 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 (serviceUnits.containsKey(suName)) {
throw new DeploymentException(new Message("DUPLICATED.SU", LOG) + suName);
}
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());
}
String msg = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<jbi-task xmlns=\"http://java.sun.com/xml/ns/jbi/management-message\" "
+ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "