public void build() { try { outputStream.write(cf.create()); } catch (IOException e) { throw new RuntimeException("Error writing to stream", e); } }