Node asset = graphDb.createNode();
asset.setProperty(KIND,PALETTE);
asset.setProperty(NAME, "new palette");
kindsIndex.add(asset,KIND,PALETTE);
kindsIndex.add(asset, NAME, "new palette".toLowerCase());
Palette pal = new Palette(this, asset);
pal.setEditable(true);
tx.success();
return pal;
} finally {
tx.finish();
}