added java patterns from other repo