public void discoveryTransfer()
	{
		if(fileManager.getPrevNode().equals(fileManager.getNextNode()))		//When second node is connected to the network, all files on this system need to be replicated
		{
			fileReplicationTransfer(fileManager.getOwnedFiles());
		}
		else
		{
			for(FileProperties f : fileManager.getOwnedOwnerFiles())
			{
				if(((fileManager.getThisNode().getHash() < fileManager.getNextNode().getHash()) && ((f.getHash() > fileManager.getNextNode().getHash()) || (f.getHash() < fileManager.getThisNode().getHash()))) || ((fileManager.getThisNode().getHash() > fileManager.getNextNode().getHash()) && (f.getHash() > fileManager.getNextNode().getHash()) && (f.getHash() < fileManager.getThisNode().getHash())))	//Next node is the new file owner
				{
					try
					{
						FileManagerInterface iFaceNode = (FileManagerInterface) fileManager.getFileManagerInterface(fileManager.getNextNode());
						
						iFaceNode.ownerSwitchFile(f.getFilename(), fileManager.getThisNode());
					}
					catch(NullPointerException | RemoteException e)
					{
						System.err.println("Failed to contact to node '" + fileManager.getNextNode().getHostname() + "': " + e.getMessage());
						fileManager.nodeConnectionFailure(fileManager.getNextNode().getHostname());
						continue;
					}
				}
			}
		}
	}