Added spelling corrections and replaced newInstance() with getDeclaredConstructor().newInstance()
Cancel was spelled as Cancle in many places hence added a small correction everywhere
newInstance()
has been replaced with getDeclaredConstructor().newInstance()
as found over here