if (isFolder == 1) remoteResource = new RemoteFolder(repositoryLocation,urlResource, revision);
if (isFolder) remoteResource = new RemoteFolder(null, repositoryLocation,urlResource, revision, lastChangedRevision, date, author);
    public Object nativeToJava(TransferData transferData){	        	if (isSupportedType(transferData)) {    		    		byte[] buffer = (byte[])super.nativeToJava(transferData);    		if (buffer == null) return null;    		            ISVNRemoteResource[] remoteResources = new ISVNRemoteResource[0];    		try {    			ByteArrayInputStream in = new ByteArrayInputStream(buffer);    			DataInputStream readIn = new DataInputStream(in);                byte isFolder = (byte)readIn.read();                // first, we read the url of the remote resource    			int size = readIn.readInt();    			byte[] name = new byte[size];    			readIn.read(name);    			SVNUrl urlResource = new SVNUrl(new String(name));                                    // then we read the url of the repository    			size = readIn.readInt();    			name = new byte[size];    			readIn.read(name);                String location = new String(name);                                // we read the revision                size = readIn.readInt();                name = new byte[size];                readIn.read(name);                SVNRevision revision = SVNRevision.getRevision(new String(name));                                    ISVNRepositoryLocation repositoryLocation = SVNProviderPlugin.getPlugin().getRepository(location);                                    ISVNRemoteResource remoteResource;                if (isFolder == 1)                    remoteResource = new RemoteFolder(repositoryLocation,urlResource, revision);                else                    remoteResource = new RemoteFile(repositoryLocation,urlResource, revision);    				                ISVNRemoteResource[] temp = new ISVNRemoteResource[remoteResources.length + 1];    			System.arraycopy(remoteResources, 0, temp, 0, remoteResources.length);                temp[remoteResources.length] = remoteResource;                remoteResources = temp;    			readIn.close();            } catch (ParseException e) {                return null;            } catch (SVNException e) {                return null;     		} catch (IOException e) {    			return null;    		}    		return remoteResources[0];    	}        	return null;    }