private void closeStreams() {
        if (writerGroovy != null) {
            try {
                writerGroovy.close();
            } catch (IOException e1) {
            }
        }
        if (writerXml != null) {
            try {
                writerXml.close();
            } catch (XMLStreamException e1) {
            }
        }
    }