if (JBI_SHARED_LIBRARY.equals(jbiDeployable.getType())) {
InstallSharedLibraryTask componentTask = new InstallSharedLibraryTask();
initializeJbiTask(componentTask);
componentTask.setFile(jbiDeployable.getFile());
componentTask.setDeferExceptions(doDeferExceptions);
componentTask.execute();
} else if (JBI_SERVICE_ASSEMBLY.equals(jbiDeployable.getType())) {
DeployServiceAssemblyTask componentTask = new DeployServiceAssemblyTask();
initializeJbiTask(componentTask);
componentTask.setFile(jbiDeployable.getFile());
componentTask.setDeferExceptions(doDeferExceptions);