[ORIENT-13] fixed POM formatting
[ORIENT-13] fixed source formatting
[ORIENT-13] fixed resource leaks