use Pattern object in PatternParameter