Fixed the sonar issues in ONAP-REST.