Remove duplicate 'using smack version' output
Add OTHER_ENTITY property
Use try-with-resources statement
Add 'debug' property