getLog().info("Undeploying " + jbiDeployable.getFile());
if (JBI_SHARED_LIBRARY.equals(jbiDeployable.getType())) {
UninstallSharedLibraryTask sharedLibraryTask = new UninstallSharedLibraryTask();
initializeJbiTask(sharedLibraryTask);
sharedLibraryTask.setName(jbiDeployable.getName());
sharedLibraryTask.execute();
} else if (JBI_SERVICE_ASSEMBLY.equals(jbiDeployable.getType())) {
UndeployServiceAssemblyTask serviceAssemblyTask = new UndeployServiceAssemblyTask();
initializeJbiTask(serviceAssemblyTask);
serviceAssemblyTask.setName(jbiDeployable.getName());
serviceAssemblyTask.execute();