code: @Override
      public Stage1Output stage1XBELValidation(final File file) {
          Stage1Output output = new Stage1Output();
  
          output.addValidationErrors(validator.validateWithErrors(file));
          if (output.hasValidationErrors()) {
              return output;
          }
  
          Document d = null;
          try {
              d = converter.toCommon(file);
              output.setDocument(d);
          } catch (JAXBException e) {
              final String name = file.toString();
              final String msg = e.getMessage();
              final Throwable cause = e;
              output.setConversionError(new ConversionError(name, msg, cause));
              return output;
          } catch (IOException e) {
              final String name = file.toString();
              final String msg = e.getMessage();
              final Throwable cause = e;
              output.setConversionError(new ConversionError(name, msg, cause));
              return output;
          }
  
          List<AnnotationDefinition> definitions = d.getDefinitions();
          if (definitions == null) {
              return output;
          }
  
          verifyAnnotations(output, d, definitions);
          return output;
      }
docs: {@inheritDoc}