public static long getBaselineTimestamp(List<Bookmark> testLines, int refID, boolean resource) {
		if (testLines != null) {
			long maxTimestamp = -1;
			for (Bookmark data : testLines) {
				int id = resource ? data.getWikiID() : data.getUserID();
				if (id == refID) {
					long timestamp = Long.parseLong(data.getTimestamp());
					if (timestamp > maxTimestamp) {
						maxTimestamp = timestamp;
					}
				}
			}
			return maxTimestamp;
		}
		return System.currentTimeMillis() / 1000;
	}