code: @Override
      public Hashtable<String, Object> getDataAsHashtable() {
          logger.entering();
  
          InputStream inputStream = resource.getInputStream();
          Yaml yaml = constructYaml(resource.getCls());
  
          Hashtable<String, Object> yamlHashTable = new Hashtable<>();
  
          LinkedHashMap<?, ?> yamlObject = (LinkedHashMap<?, ?>) yaml.load(inputStream);
  
          for (Entry<?, ?> entry : yamlObject.entrySet()) {
              yamlHashTable.put((String) entry.getKey(), entry.getValue());
          }
  
          logger.exiting(yamlHashTable);
          return yamlHashTable;
      }
docs: Gets yaml data and returns in a hashtable instead of an Object 2D array. Only compatible with a yaml file
  formatted to return a map. <br>
  <br>
  YAML file example:
  
  <pre>
  test1:
  name: 1
  email: user1@paypal.com
  userId: 10686626
  test2:
  name: 2
  email: user2@paypal.com
  userId: 10686627
  </pre>
  
  @return yaml data in form of a Hashtable.