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);  boolean isFolder = readIn.readBoolean();   SVNUrl urlResource = new SVNUrl(readIn.readUTF());   String location = readIn.readUTF();   SVNRevision revision = SVNRevision.getRevision(readIn.readUTF());   SVNRevision.Number lastChangedRevision = ( Number) SVNRevision.getRevision(readIn.readUTF());  Date date = new Date(readIn.readLong()); String author = readIn.readUTF();  ISVNRepositoryLocation repositoryLocation = SVNProviderPlugin.getPlugin().getRepository(location);  ISVNRemoteResource remoteResource; if (isFolder) remoteResource = new RemoteFolder(null, repositoryLocation,urlResource, revision, lastChangedRevision, date, author); else remoteResource = new RemoteFile(null, repositoryLocation,urlResource, revision, lastChangedRevision, date, author);  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;
if (!isSupportedType(transferData)) return null;  byte[] buffer = (byte[])super.nativeToJava(transferData); if (buffer == null) return null;  return fromByteArray(buffer);
    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);                boolean isFolder = readIn.readBoolean();                // first, we read the url of the remote resource    			SVNUrl urlResource = new SVNUrl(readIn.readUTF());                                    // then we read the url of the repository                String location = readIn.readUTF();                                // we read the revision                SVNRevision revision = SVNRevision.getRevision(readIn.readUTF());                // we read the last changed revision                SVNRevision.Number lastChangedRevision = ( Number) SVNRevision.getRevision(readIn.readUTF());                                Date date = new Date(readIn.readLong());                String author = readIn.readUTF();                                ISVNRepositoryLocation repositoryLocation = SVNProviderPlugin.getPlugin().getRepository(location);                                    ISVNRemoteResource remoteResource;                if (isFolder)                    remoteResource = new RemoteFolder(null, repositoryLocation,urlResource, revision, lastChangedRevision, date, author);                else                    remoteResource = new RemoteFile(null, repositoryLocation,urlResource, revision, lastChangedRevision, date, author);    				                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;    }