code: public static DocumentBuilder newDocumentBuilder(final DocumentBuilderFactory factory)
     {
        try
        {
           final DocumentBuilder builder = factory.newDocumentBuilder();
           return builder;
        }
        catch (Exception e)
        {
           throw MESSAGES.unableToCreateInstanceOf(e, DocumentBuilder.class.getName());
        }
     }
docs: Creates a new DocumentBuilder instance using the provided DocumentBuilderFactory
  
  @param factory
  @return