Create AbstractPattern.java