boolean listContainsEvent(List<WatchEvent<?>> list, WatchEvent.Kind kind, String fileName)
	{
		Path context = null;
		if(fileName !=null)
			context = Bootstrapper.newPath(new File(fileName));

		for(WatchEvent<?> key : list){
			boolean sameKind = key.kind() == kind;
			boolean sameContext = key.context()== null && context==null || key.context().equals(context);

			if(sameKind && sameContext)
				return true;
		}
		return false;
	}