@Override
    public IExportWriter writeMetadata(MetadataBean metadata) {
        validityCheckStart(GlobalElementsEnum.Metadata);
        writePojo(GlobalElementsEnum.Metadata, metadata);
        return this;
    }
Constructor.

@param targetStream
@param logger logger used (and abused!) for
@throws IOException
manager/api/export-import/src/main/java/io/apiman/manager/api/exportimport/json/JsonExportWriter.java