As I See it works if only change imports so we need to create a factory for Pattern/Matcher and adaptors
As I See it works if only change imports so we need to create a factory for Pattern/Matcher and adaptors