Updating the UTILS.java with switch case.