Added methods for getting and finding patterns from pattern manager