In BootstrapUtil.bootstrap(String, int) method if the bootstraped node already exist then we delete this node and then we import new content. This sometime leads to ItemExistsException. Deletion and import should happen on same session so this should not lead to ItemExistsException. So we need to verify if really deletion and import happens on same session.
Maybe there should be no need to explicitly delete the imported node since that can be controlled by the uuid strategy.