code: public static SeLionDataProvider getDataProvider(DataResource resource)
              throws IOException {
          logger.entering(resource);
  
          if(resource == null) {
              return null;
          }
  
          switch (resource.getType().toUpperCase()) {
          case "XML":
              return new XmlDataProviderImpl((XmlDataSource) resource);
          case "JSON":
              return new JsonDataProviderImpl(resource);
          case "YAML":
          case "YML":
              return new YamlDataProviderImpl(resource);
          case "XLSX":
          case "XLS":
              return new ExcelDataProviderImpl(resource);
          default:
              return null;
          }
       }
docs: Load the Data provider implementation for the data file type
  
  @param resource - resource of the data file
  @return Data provider Impl
  @throws IOException