add a CommonPattern.java