code: public static Bibliography makeAdhocBibliography(String style, String outputFormat,
  			CSLItemData... items) throws IOException {
  		ItemDataProvider provider = new ListItemDataProvider(items);
  		try (CSL csl = new CSL(provider, style)) {
  			csl.setOutputFormat(outputFormat);
  
  			String[] ids = new String[items.length];
  			for (int i = 0; i < items.length; ++i) {
  				ids[i] = items[i].getId();
  			}
  			csl.registerCitationItems(ids);
  
  			return csl.makeBibliography();
  		}
  	}
docs: Creates an ad hoc bibliography from the given citation items. Calling
  this method is rather expensive as it initializes the CSL processor.
  If you need to create bibliographies multiple times in your application
  you should create the processor yourself and cache it if necessary.
  @param style the citation style to use. May either be a serialized
  XML representation of the style or a style's name such as <code>ieee</code>.
  In the latter case, the processor loads the style from the classpath (e.g.
  <code>/ieee.csl</code>)
  @param outputFormat the processor's output format (one of
  <code>"html"</code>, <code>"text"</code>, <code>"asciidoc"</code>,
  <code>"fo"</code>, or <code>"rtf"</code>)
  @param items the citation items to add to the bibliography
  @return the bibliography
  @throws IOException if the underlying JavaScript files or the CSL style
  could not be loaded