docs: protected void writeStringToFile( String data, File file, String encoding )
          throws MojoExecutionException
      {
  
          OutputStream outStream = null;
          Writer writer = null;
          try
          {
              outStream = new FileOutputStream( file );
              writer = new OutputStreamWriter( outStream, encoding );
              writer.write( data );
          }
          catch ( IOException e )
          {
              throw new MojoExecutionException( "Failed to write to " + file, e );
          }
          finally
          {
              // resource-handling not perfectly solved but we do not want to require java 1.7
              // and this is not a server application.
              IOUtil.close( writer );
              IOUtil.close( outStream );
          }
      }