code: public T loadXml(File file) {
  
      FileResource resource = new FileResource(file);
      return loadXml(resource);
    }
docs: This method loads the JAXB-bean as XML from the given {@code inputStream}.
  
  @param file is the {@link File} with the XML to parse.
  @return the parsed XML converted to the according JAXB-bean.