DeleteNodeCommand deleteCommand = StructrApp.getInstance(securityContext).command(DeleteNodeCommand.class);
for (AbstractNode contentNode : contentNodes.values()) {
deleteCommand.execute(contentNode);
}
} catch (Throwable t) {
logger.log(Level.SEVERE, "Exception while deleting nested Components: {0}", t.getMessage());