dsState);
w = m_manager.getWriter(Server.USE_DEFINITIVE_STORE, context, pid);
if (!dsState.equals("A") && !dsState.equals("D")
&& !dsState.equals("I")) {
throw new InvalidStateException("The datastream state of \""
+ dsState
+ "\" is invalid. The allowed values for state are: "
+ " A (active), D (deleted), and I (inactive).");
}
w.setDatastreamState(datastreamID, dsState);