public static List<String> split(String str, String splitter) {
        if (str == null) {
            return null;
        }

        if (StringUtils.isBlank(str)) {
            return Collections.EMPTY_LIST;
        }

        String[] addrArray = str.split(splitter);
        return Arrays.asList(addrArray);
    }
@Test
    public void testSplit() {
        List<String> list = Arrays.asList("groupA=DENY", "groupB=PUB|SUB", "groupC=SUB");
        String comma = ",";
        assertEquals(list, UtilAll.split("groupA=DENY,groupB=PUB|SUB,groupC=SUB", comma));
        assertEquals(null, UtilAll.split(null, comma));
        assertEquals(Collections.EMPTY_LIST, UtilAll.split("", comma));
    }