This method returns string like lib1<separator>lib2<separator>
thus leaving the last trailing separator in the string. Is it intended?

If no - may use simpler apache-commons StringUtils.join(sonarLibraries, SonarProperties.SEPARATOR)