Refactoring: extending pattern patterns with protocols

Signed-off-by: selmeci <roman.selmeci@infones.com>