code: @Override
      public void afterPropertiesSet() throws Exception {
          if (this.jaxbLoader == null && this.mappedXmlResource == null) {
              throw new BeanCreationException("Either the 'jaxbLoader' property or the 'mappedXmlResource' property needs to be set");
          }
  
          if (this.jaxbLoader == null) {
              this.jaxbLoader = new CachingJaxbLoaderImpl<>(PersonData.class);
              ((CachingJaxbLoaderImpl<PersonData>) this.jaxbLoader).setMappedXmlResource(this.mappedXmlResource);
          }
      }
docs: /* (non-Javadoc)
  @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()