private static void parseCreate(String[] arr, int lineNumber) throws ParseException { if (arr.length > 1) { switch (arr[1]) { case "LIST_CLIENT": { if (arr.length > 2) { ProxyFilter.createClientList(arr[2]); } else { throw new ParseException("Name for client list is not specified at " + lineNumber, 2); } } break; case "LIST_ADDRESS": { if (arr.length > 2) { ProxyFilter.createAddressList(arr[2]); } else { throw new ParseException( "Name for address list is not specified at " + lineNumber, 2); } } break; default: { throw new ParseException("Wrong create params at " + lineNumber, 2); } } } else { throw new ParseException("Wrong create section at " + lineNumber, 1); } }