Add java patterns