public @Nullable ResourceBundle findBundle() {
    String pathToBundle = findPathToBundle();
    if (pathToBundle == null) {
      // a path to bundle is not specified or cannot be found
      return null;
    }
    ClassLoader loader = pluginDescriptor == null ? null : pluginDescriptor.getPluginClassLoader();
    return DynamicBundle.getResourceBundle(loader != null ? loader : getClass().getClassLoader(), pathToBundle);
  }
public @Nullable ResourceBundle findBundle()