code: private List<Object> loadDataFromDocuments(Yaml yaml, InputStream inputStream) {
          logger.entering(new Object[] { yaml, inputStream });
          Iterator<?> documents = yaml.loadAll(inputStream).iterator();
          List<Object> objList = new ArrayList<>();
  
          while (documents.hasNext()) {
              objList.add(documents.next());
          }
  
          logger.exiting(objList);
          return objList;
      }
docs: Converts a yaml file into an Object 2D array for <a
  href="http://testng.org/doc/documentation-main.html#parameters-dataproviders"> TestNG Dataprovider</a>
  consumption.
  
  <br>
  A proper <a href="https://code.google.com/p/snakeyaml/wiki/Documentation#JavaBeans">JavaBean</a> must be defined
  or else an exception will be thrown while attempting to load the yaml file. <br>
  <br>
  YAML file example:
  
  <pre>
  ---
  MyObject:
  name: 1
  email: user1@paypal.com
  userId: 10686626
  ---
  MyObject:
  name: 2
  email: user2@paypal.com
  userId: 10686626
  </pre>
  
  Object array returned:
  
  <pre>
  Object[1][0] = com.paypal.test.dataobject.MyObject@54bb7759
  Object[2][0] = com.paypal.test.dataobject.MyObject@5f989f84
  </pre>
  
  Test method signature example:
  
  <pre>
  public void testExample(MyObject myObject)
  </pre>
  
  @param yaml
  A {@link Yaml} object that represents a Yaml document.
  @param inputStream
  A {@link InputStream} object.
  @return an List containing multiple yaml documents loaded by SnakeYaml