SONARJAVA-160 Remove getLibraries that was not used
SONARJAVA-160 Add log message for deprecation