public ODeployDatabaseTask(final ODatabaseRecordTx db) {
random = UUID.randomUUID().getLeastSignificantBits();
if (db != null) {
// TO USE IN CASE OF CHECK CLUSTERS (SPLIT-NETWORK)
final OStorageAbstract stg = (OStorageAbstract) db.getStorage().getUnderlying();
final ODocument clusters = new ODocument();
databaseConfiguration.field("clusters", clusters);
for (String clName : stg.getClusterNames()) {
final OCluster c = stg.getClusterByName(clName);
final ODocument cluster = new ODocument();
clusters.field(clName, cluster);
try {