Removing references to NotImplementedException - this is an internal class by Sun, liable to disappear in future.  Also, does not exist in other vendors' JVMs.