try {
anOutputStream.write(SCRIPT_TAG_PREFIX);
anOutputStream.write(aStatement);
anOutputStream.write(SCRIPT_TAG_SUFFIX);
} catch(IOException e) {
throw new EventServiceException("Error on printing statement \"" + new String(aStatement) + "\"!", e);
} finally {
flush(aStatement, anOutputStream);
}
}