if (assemblyName == null) {
throw new BuildException("null assemblyName");
}
try {
DeploymentServiceMBean is = getDeploymentService();
is.undeploy(assemblyName);
}
catch (IOException e) {
log.error("Caught an exception uninstalling the assembly", e);
throw new BuildException(e);
}