code: public static void closeQuietly(final XMLStreamReader reader) {
          try {
              if (reader != null) {
                  reader.close();
              }
          } catch (final Throwable t) {
              if (LOGGER.isDebugEnabled()) {
                  LOGGER.debug("Ignoring exception that occurred when closing XMLStreamReader", t);
              }
          }
      }
docs: Closes an {@link XMLStreamReader}.
  
  <p>
  This method will quietly log any {@link IOException} that may occur but will otherwise ignore
  it.
  </p>
  
  @param reader
  XMLStreamReader to be closed.