code: @Override
      public MavenPomXmlDescriptor scan(FileResource item, MavenPomXmlDescriptor mavenPomXmlDescriptor, String path, Scope scope, Scanner scanner)
              throws IOException {
          Model model = getModel(item, scanner);
          if (model != null) {
              scanner.getContext().push(MavenPomDescriptor.class, mavenPomXmlDescriptor);
              try {
                  MavenPomXmlDescriptor result = scanner.scan(model, path, scope);
                  result.setValid(true);
                  return result;
              } finally {
                  scanner.getContext().pop(MavenPomDescriptor.class);
              }
          } else {
              mavenPomXmlDescriptor.setValid(false);
              return mavenPomXmlDescriptor;
          }
      }
docs: {@inheritDoc}