Mining Candidate Web Services from Legacy Code