code: @Override
      public void generateConfig(T config, String filePath) throws ConfigurationException {
          XStream xstream = new XStream(new StaxDriver());
          xstream.alias("configuration", clazz);
          BufferedOutputStream stdout = null;
          try {
              stdout = new BufferedOutputStream(new FileOutputStream(filePath));
          } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          xstream.marshal(config, new PrettyPrintWriter(new OutputStreamWriter(stdout)));
      }
docs: {@inheritDoc}