public SameWordsFinder(TextComponent text) throws BookException {
		if (text == null) {
			throw new BookException("Text is null");
		} else if (text.getType() != EComponentType.TEXT
				&& text.getType() != EComponentType.PARAGRAPH) {
			throw new BookException("Text type is incorrect");
		}
		this.text = text;
	}