code: boolean filterWay(ReaderWay item) {
          // ignore broken geometry
          if (item.getNodes().size() < 2)
              return false;
  
          // ignore multipolygon geometry
          if (!item.hasTags())
              return false;
  
          return encodingManager.acceptWay(item, new EncodingManager.AcceptWay());
      }
docs: Filter ways but do not analyze properties wayNodes will be filled with participating node ids.
  
  @return true the current xml entry is a way entry and has nodes