protected List<String> getSpaces(String host, ContentStore store)
        throws ContentStoreException {
        List<String> spaceList;
        String spaces = dupHosts.get(host);
        if (spaces.equals(ALL_SPACES)) { // Need to compare all spaces
            spaceList = new ArrayList<>(store.getSpaces());
            spaceList.removeAll(ADMIN_SPACES);
        } else { // Only compare specific set of spaces
            String[] spacesToCompare = spaces.split(",");
            spaceList = Arrays.asList(spacesToCompare);
        }
        return spaceList;
    }
protected List < String > getSpaces ( String host , ContentStore store ) throws ContentStoreException { List < String > spaceList ; String spaces = dupHosts . get ( host ) ; if ( spaces . equals ( ALL_SPACES ) ) { spaceList = new ArrayList < > ( store . getSpaces ( ) ) ; spaceList . removeAll ( ADMIN_SPACES ) ; } else { String [ ] spacesToCompare = spaces . split ( "," ) ; spaceList = Arrays . asList ( spacesToCompare ) ; } return spaceList ; }
/*
Determine the spaces which need to be compared. If a space list is
provided for a given account, use that list, otherwise compare
all user spaces.