Modified versions to 5.7.3 in pom files and added prefix checking logic