code: public T loadXml(InputStream inputStream, Object source) {
  
      try {
        Object unmarshalledObject = getOrCreateUnmarshaller().unmarshal(inputStream);
        T jaxbBean = this.xmlBeanClass.cast(unmarshalledObject);
        validate(jaxbBean);
        return jaxbBean;
      } catch (JAXBException e) {
        throw new XmlInvalidException(e, source);
      }
    }
docs: This method loads the JAXB-bean as XML from the given {@code inputStream}.
  
  @param inputStream is the {@link InputStream} with the XML to parse.
  @return the parsed XML converted to the according JAXB-bean.
  @param source describes the source of the invalid XML. Typically this will be the filename where the XML was read
  from. It is used in in the exception message. This will help to find the problem easier.