int operationContext) {
if(serviceDef == null) {
LOG.error("RangerServiceDefServiceBase.populateRangerEnumDefToXX, serviceDef can not be null");
throw restErrorUtil.createRESTException("RangerServiceDef cannot be null.", MessageEnums.DATA_NOT_FOUND);
}
<BUG>xObj = (XXEnumDef) rangerAuditFields.populateAuditFields(xObj, serviceDef);
xObj.setDefid(serviceDef.getId());</BUG>
xObj.setItemId(vObj.getItemId());
xObj.setName(vObj.getName());
xObj.setDefaultindex(vObj.getDefaultIndex());

int operationContext) {
if(serviceDef == null) {
LOG.error("RangerServiceDefServiceBase.populateRangerEnumDefToXX, serviceDef can not be null");
throw restErrorUtil.createRESTException("RangerServiceDef cannot be null.", MessageEnums.DATA_NOT_FOUND);
}
xObj = rangerAuditFields.populateAuditFields(xObj, serviceDef);
xObj.setDefid(serviceDef.getId());
xObj.setItemId(vObj.getItemId());
xObj.setName(vObj.getName());
xObj.setDefaultindex(vObj.getDefaultIndex());
