InputStream finally closed to avoid memory leak
Buffered streams not needed anymore.
Remove TODO message
Excluded some versions of javassist in pom dependencies.
Profiles added to pom.