public void lazyLoadDocument(PersistedFormDocument persistedForm) {

    if (persistedForm != null) {
      setFormId(persistedForm.getFormId());
      setFormType(persistedForm.getFormType());
      setFormVersion(persistedForm.getVersion());
    }

    setContainerElement(FormManagerUtil.getComponentsContainerElement(getXformsDocument()));

    persistedFormForLazyLoading = persistedForm;
  }
  private void loadDocumentInternal(PersistedFormDocument persistedForm) {

    Document xformsXmlDoc = getXformsDocument();

    if (persistedForm != null) {
      setFormId(persistedForm.getFormId());
      setFormType(persistedForm.getFormType());
      setFormVersion(persistedForm.getVersion());
    }

    setContainerElement(FormManagerUtil.getComponentsContainerElement(xformsXmlDoc));
    loadContainerComponents();
    setProperties();

    loaded = true;
  }