class DividedStringPatternMatcher {

	public boolean isMatching(String given ) {
		if (given==null) {
			return false;
		}
		String target = given.toLowerCase();
		String[] targetPart = splitByDivider(target);
		if (targetPart == null) {
			return false;
		}
		if (targetPart.length != patternParts.length) {
			return false;
		}
		boolean accepted = true;
		for (int i = 0; i < patternParts.length && accepted; i++) {
			accepted = patternParts[i].equals("*") || patternParts[i].equals(targetPart[i]);
		}
		return accepted;
	}

	public  DividedStringPatternMatcher(String pattern, char divider);

}