bootstrap/src/main/java/com/streamsets/pipeline/BootstrapMain.java
public static Set<String> getWhiteList(String configDir, String property) {
    Set<String> set = null;
    File whiteListFile = new File(configDir, WHITE_LIST_FILE).getAbsoluteFile();
    if (whiteListFile.exists()) {
      try (InputStream is = new FileInputStream(whiteListFile)) {
        Properties props = new Properties();
        props.load(is);
        String whiteList = props.getProperty(property);
        if (whiteList == null) {
          throw new IllegalArgumentException(String.format(WHITE_LIST_PROPERTY_MISSING_MSG, property, whiteListFile));
        }
        whiteList = whiteList.trim();
        if (!whiteList.equals(ALL_VALUES)) {
          set = new HashSet<>();
          for (String name : whiteList.split(",")) {
            name = name.trim();
            if (!name.isEmpty()) {
              set.add("+" + name.trim());
            }
          }
        }
      } catch (IOException ex) {
        throw new IllegalArgumentException(String.format(WHITE_LIST_COULD_NOT_LOAD_FILE_MSG,
                                                         whiteListFile, ex.toString()), ex);
      }
    }
    return set;
  }
public static Set<String> getWhiteList(String configDir, String property) {
    Set<String> set = null;
    File whiteListFile = new File(configDir, WHITE_LIST_FILE).getAbsoluteFile();
    if (whiteListFile.exists()) {
      try (InputStream is = new FileInputStream(whiteListFile)) {
        Properties props = new Properties();
        props.load(is);
        String whiteList = props.getProperty(property);
        if (whiteList == null) {
          throw new IllegalArgumentException(String.format(WHITE_LIST_PROPERTY_MISSING_MSG, property, whiteListFile));
        }
        whiteList = whiteList.trim();
        if (!whiteList.equals(ALL_VALUES)) {
          set = new HashSet<>();
          for (String name : whiteList.split(",")) {
            name = name.trim();
            if (!name.isEmpty()) {
              set.add("+" + name.trim());
            }
          }
        }
      } catch (IOException ex) {
        throw new IllegalArgumentException(String.format(WHITE_LIST_COULD_NOT_LOAD_FILE_MSG,
                                                         whiteListFile, ex.toString()), ex);
      }
    }
    return set;
  }
public static Set < String > getWhiteList ( String configDir , String property ) { Set < String > set = null ; File whiteListFile = new File ( configDir , WHITE_LIST_FILE ) . getAbsoluteFile ( ) ; if ( whiteListFile . exists ( ) ) { try ( InputStream is = new FileInputStream ( whiteListFile ) ) { Properties props = new Properties ( ) ; props . load ( is ) ; String whiteList = props . getProperty ( property ) ; if ( whiteList == null ) { throw new IllegalArgumentException ( String . format ( WHITE_LIST_PROPERTY_MISSING_MSG , property , whiteListFile ) ) ; } whiteList = whiteList . trim ( ) ; if ( ! whiteList . equals ( ALL_VALUES ) ) { set = new HashSet <> ( ) ; for ( String name : whiteList . split ( "," ) ) { name = name . trim ( ) ; if ( ! name . isEmpty ( ) ) { set . add ( "+" + name . trim ( ) ) ; } } } } catch ( IOException ex ) { throw new IllegalArgumentException ( String . format ( WHITE_LIST_COULD_NOT_LOAD_FILE_MSG , whiteListFile , ex . toString ( ) ) , ex ) ; } } return set ; }
if whitelist is '*' set is NULL, else whitelist has the whitelisted values
if whitelist is * set is NULL else whitelist has the whitelisted values