code: public void loadFromYAML(final InputStream is) throws IOException {
  		lock.writeLock().lock();
  		try {
  			final YAMLFactory f = new YAMLFactory();
  			final YAMLParser jp = f.createParser(is);
  			configureJsonParser(jp);
  			if (jp.nextToken() == JsonToken.START_OBJECT) {
  				traverseJSON(jp, null);
  			}
  		} finally {
  			lock.writeLock().unlock();
  		}
  	}
docs: Loads a json file. Reading from the given InputStream. The InputStream
  itself will not be closed after usage.
  
  @param is
  the is
  @throws IOException
  Signals that an I/O exception has occurred.