}
writer.flush();
writer.close();
writer = null;
} catch (UnsupportedEncodingException e) {
throw new DataUtilException(e);
} catch (FileNotFoundException e) {
throw new DataUtilException(e);
} catch (IOException e) {
throw new DataUtilException(e);
} finally {
if(writer != null) {
try {
writer.close();
} catch (IOException e) {