private void handlePutCommand(InvocationContext ctx, Fqn fqn)
throws Exception
{
if (fqn != null && dataContainer.peek(fqn, false, false) != null && loader.exists(fqn))
{
NodeSPI n = dataContainer.peek(fqn, true, false);// don't load
// node not null and attributes have been loaded?
if (n != null && n.isDataLoaded())
{
// has children?
boolean result = childrenLoaded(n);
if (!n.getChildrenDirect().isEmpty() && result)
{
// children have been loaded, remove the node
addRemoveMod(ctx, cacheLoaderModifications, fqn, n.getDataDirect());
txActs++;
}
// doesn't have children, check the cache loader
else if (loaderNoChildren(fqn))
{
addRemoveMod(ctx, cacheLoaderModifications, fqn, n.getDataDirect());
txActs++;
}
}
}
}