Fixed various sonar issues. Fixed bug in CopyEngine.readFully