dir.getWCAccess().setEventHandler(handler);
    private void addFile(File path, SVNFileType type, SVNAdminArea dir) throws SVNException {        SVNWCManager.add(path, dir, null, SVNRevision.UNDEFINED);        String mimeType = null;        if (type == SVNFileType.SYMLINK) {            SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL,                     SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false);        } else {            Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path);            for (Iterator names = props.keySet().iterator(); names.hasNext();) {                String propName = (String) names.next();                String propValue = (String) props.get(propName);                SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, propValue, false);            }            mimeType = (String) props.get(SVNProperty.MIME_TYPE);        }        SVNEvent event = SVNEventFactory.createAddedEvent(dir, path.getName(), SVNNodeKind.FILE, mimeType);        dispatchEvent(event);    }