anchor.diff:  ...
   ----
   
  +.Example setting attributes and options with classes
  +[source, java]
  +----
  +import static org.asciidoctor.AttributesBuilder.attributes;
  +import static org.asciidoctor.OptionsBuilder.options;
  +
  +...
  +
  +Attributes attributes = attributes().backend("docbook").get();
  +Options options = options().inPlace(true).attributes(attributes).get();
  +
  +String render = asciidoctor.renderFile("target/test-classes/rendersample.asciidoc", options);
  +
  +...
  +----
  +
   === Utilities
   
   A utility class for searching all asciidoc files present in a root folder and all its subfolders is given. In fact it finds all files that end up with _.asc_, _.asciidoc_, _.ad_ or _.adoc_. This class is +AsciiDocDirectoryWalker+.
  
positive.code: List<File> asciidocFiles = directoryWalker.scan();
  ----
  
  == Optimization
  
  Sometimes +JRuby+ starting time is slower than we would expect if we were using standard C-based, non-optimizing standard Ruby. For improving this time, +JRuby+ offers some flags which can be used to tune +JRuby+ applications. Apart of these flags, or in conjunction with them, we can use some +java+ flags to improve even more the startup time.
  
negative.code: 
  See that in previous example we have created a Map, where we have put the options and attributes (creating a Map too) required to render input as docbook and generate an output file.
  
  Another way for setting options is by using +org.asciidoctor.Options+ class. +Options+ is a simple Java class which contains methods for setting required options. Note that related with +org.asciidoctor.Options+ class, there is +org.asciidoctor.Attributes+ class, which can be used for setting attributes.
  
  +render+ methods are overloaded, so we can pass +org.asciidoctor.Options+ as parameter instead of +java.util.Map+. 
  
  .Example of using Options and Attributes class instead of Map.
  [source, java]
  ----
   
  Attributes attributes = new Attributes();
  attributes.setBackend("docbook");
  		
  Options options = new Options();
  options.setInPlace(true);
  options.setAttributes(attributes);
  
  String render = asciidoctor.renderFile("target/test-classes/rendersample.asciidoc", options);
  
  ...
  ----
  
  But +asciidoctor-java-integration+ also provides two fluent interfaces to create these maps and classes in a more readable form. 
  
  +org.asciidoctor.AttributesBuilder+ is provided for creating required attributes set, and +org.asciidoctor.OptionsBuilder+ can be used for options. Previous example but using these classes looks like:
  
  .Example setting attributes and options with map
  [source, java]
  ----
  import static org.asciidoctor.AttributesBuilder.attributes;
  