Separated IDML and Folio XML import validations into pre and post part to simplify code