IResource resource = resources[i];
    public ISVNResource[] members(IProgressMonitor monitor, int flags)            throws SVNException {        final List result = new ArrayList();        IResource[] resources;        try {            resources = ((IContainer) resource).members(true);        } catch (CoreException e) {            throw SVNException.wrapException(e);        }        boolean includeFiles = (((flags & FILE_MEMBERS) != 0) || ((flags & (FILE_MEMBERS | FOLDER_MEMBERS)) == 0));        boolean includeFolders = (((flags & FOLDER_MEMBERS) != 0) || ((flags & (FILE_MEMBERS | FOLDER_MEMBERS)) == 0));        boolean includeManaged = (((flags & MANAGED_MEMBERS) != 0) || ((flags & (MANAGED_MEMBERS                | UNMANAGED_MEMBERS | IGNORED_MEMBERS)) == 0));        boolean includeUnmanaged = (((flags & UNMANAGED_MEMBERS) != 0) || ((flags & (MANAGED_MEMBERS                | UNMANAGED_MEMBERS | IGNORED_MEMBERS)) == 0));        boolean includeIgnored = ((flags & IGNORED_MEMBERS) != 0);        boolean includeExisting = (((flags & EXISTING_MEMBERS) != 0) || ((flags & (EXISTING_MEMBERS | PHANTOM_MEMBERS)) == 0));        boolean includePhantoms = (((flags & PHANTOM_MEMBERS) != 0) || ((flags & (EXISTING_MEMBERS | PHANTOM_MEMBERS)) == 0));        for (int i = 0; i < resources.length; i++) {            IResource resource = resources[i];            ISVNLocalResource svnResource = SVNWorkspaceRoot                    .getSVNResourceFor(resource);            if ((includeFiles && (resource.getType() == IResource.FILE))                    || (includeFolders && (resource.getType() == IResource.FOLDER))) {                boolean isManaged = svnResource.isManaged();                boolean isIgnored = svnResource.isIgnored();                if ((isManaged && includeManaged)                        || (isIgnored && includeIgnored)                        || (!isManaged && !isIgnored && includeUnmanaged)) {                    boolean exists = svnResource.exists();                    if ((includeExisting && exists)                            || (includePhantoms && !exists)) {                        result.add(svnResource);                    }                }            }        }        return (ISVNLocalResource[]) result                .toArray(new ISVNLocalResource[result.size()]);    }