w = m_manager.getWriter(Server.USE_DEFINITIVE_STORE, context, pid);
Date[] deletedDates =
w.removeDatastream(datastreamID, startDT, endDT);
// check if there's at least one version with this id...
if (w.GetDatastream(datastreamID, null) == null) {
// if deleting would result in no versions remaining,
// only continue if there are no disseminators that use
// this datastream.
// to do this, we must look through all versions of every
// disseminator, regardless of state