class UuidUtils {

    public static boolean validateUUID(String uuid) {
        RegularExpression regex = new RegularExpression("[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}");
        return regex.matches(uuid);
    }

}