Use Rhino instead of regex to extract class name.