code: public static ALasWriter getWriter( File lasFile, CoordinateReferenceSystem crs ) throws Exception {
          if (supportsNative()) {
              return new LiblasWriter(lasFile, crs);
          } else {
              return new LasWriterBuffered(lasFile, crs);
          }
      }
docs: Get a las writer.
  
  <p>If available, a native writer is created.
  
  @param lasFile the file to write.
  @param crs the {@link CoordinateReferenceSystem} to be written in the prj.
  @return the las writer.
  @throws Exception if something goes wrong.