*/
public void handle(DSCEvent event, DSCParser parser) throws IOException, DSCException {
if (event.isDSCComment()) {
DSCComment comment = event.asDSCComment();
if (DSCConstants.BEGIN_DOCUMENT.equals(comment.getName())) {
comment.generate(gen);
comment = parser.nextDSCComment(DSCConstants.END_DOCUMENT, gen);
if (comment == null) {
throw new DSCException("File is not DSC-compliant: Didn't find an "
+ DSCConstants.END_DOCUMENT);
}