SONAR-5007 use QProfileService as a facade
Delete unused code in org.sonar.jpa.dao
Add XmlWriter#end(String) for documentation purpose