private Source getDataAsSource() throws DigitalObjectException { Source src = editor.read(); if (src == null) { // it should never arise; it would need to create datastream again with default data throw new DigitalObjectException( object.getPid(), null, DESCRIPTION_DATASTREAM_ID, "datastream not initialized!", null); } return src; }