}catch (DataIntegrityViolationException dive){
SgwtRestErrorResponse resp = new SgwtRestErrorResponse(-4);
String contraintMsg = dive.getCause().getCause().getMessage();
if(StringUtils.indexOf(contraintMsg, "key 2") > 0){
resp.addError("supplierCode", "Supplier Code Found");
}
return resp;
}catch (Exception e) {
e.printStackTrace();