Remove some sun.reflect imports

Remove unwanted sun.reflect import, and change NotImplementedException to PicardException (not a very informative one, but neither was the old one).