code: public Configuration create() {
          Configuration configuration;
          try {
              InputStream stream = null;
              try {
                  // Search the user configuration
                  stream = Utils.openResourceStream(DEFAULT_USER_CONFIGURATION_FILE);
  
                  // If user configuration not found then use default
                  if (stream == null) {
                      stream = Utils.openResourceStream(DEFAULT_CONFIGURATION_FILE);
                  }
  
                  if (stream != null) {
                      configuration = create(stream);
                  } else {
                      throw new TextProcessorFactoryException("Can't find or open default configuration resource.");
                  }
              } finally {
                  if (stream != null) {
                      stream.close();
                  }
              }
  
              Properties properties = new Properties();
  
              // Load properties from .property file
              InputStream propertiesStream = null;
              try {
                  propertiesStream = Utils.openResourceStream(DEFAULT_PROPERTIES_FILE);
                  if (propertiesStream != null) {
                      properties.load(propertiesStream);
                  }
              } finally {
                  if (propertiesStream != null) {
                      propertiesStream.close();
                  }
              }
  
              // Load properties from xml file
              InputStream xmlPropertiesStream = null;
              try {
                  xmlPropertiesStream = Utils.openResourceStream(DEFAULT_PROPERTIES_XML_FILE);
                  if (xmlPropertiesStream != null) {
                      properties.loadFromXML(xmlPropertiesStream);
                  }
              } finally {
                  if (xmlPropertiesStream != null) {
                      xmlPropertiesStream.close();
                  }
              }
  
              if (!properties.isEmpty()) {
                  Map<String, CharSequence> params = new HashMap<String, CharSequence>();
                  params.putAll(configuration.getParams());
                  for (Map.Entry<Object, Object> entry : properties.entrySet()) {
                      Object key = entry.getKey();
                      if (key != null) {
                          params.put(key.toString(), entry.getValue().toString());
                      }
                  }
                  configuration.setParams(params);
              }
          } catch (IOException e) {
              throw new TextProcessorFactoryException(e);
          }
  
          return configuration;
      }
docs: Create the default bb-code processor.
  
  @return Default bb-code processor
  @throws TextProcessorFactoryException when can't read the default code set resource