U can ask ur current employer to cancel ur visa and issue you an open NOC (stating for any other company)at the time of ur departure. Then ur new company (y) can use that NOC to get ur new visa immediately. Other wise u will have to be stuck with Z company for 1 year before getting any thing