code: public static BeanGenConfig parse(String resourceLocator) {
          String fullFile;
          if (resourceLocator.contains("/") || resourceLocator.endsWith(".ini")) {
              fullFile = resourceLocator;
          } else if (resourceLocator.equals("jdk6")) {  // compatibility
              fullFile = "org/joda/beans/gen/jdk.ini";
          } else {
              fullFile = "org/joda/beans/gen/" + resourceLocator + ".ini";
          }
          ClassLoader loader = BeanGenConfig.class.getClassLoader();
          if (loader == null) {
              throw new IllegalArgumentException("ClassLoader was null: " + fullFile);
          }
          URL url = loader.getResource(fullFile);
          if (url == null) {
              throw new IllegalArgumentException("Configuration file not found: " + fullFile);
          }
          List<String> lines = new ArrayList<>();
          BufferedReader in = null;
          try {
              in = new BufferedReader(new InputStreamReader(url.openStream(), UTF8));
              String line = in.readLine();
              while (line != null) {
                  if (line.trim().startsWith("#") == false && line.trim().length() > 0) {
                      lines.add(line);
                  }
                  line = in.readLine();
              }
              return parse(lines);
          } catch (IOException ex) {
              throw new RuntimeException(ex.getMessage(), ex);
          } finally {
              if (in != null) {
                  try {
                      in.close();
                  } catch (IOException ex1) {
                      // ignore
                  }
              }
          }
      }
docs: Parses the configuration file.
  <p>
  This loads the file as an ini file in this package.
  
  @param resourceLocator  the configuration resource locator, not null
  @return the configuration