XXEnumDef enumDef, int operationContext) {
if(enumDef == null) {
LOG.error("RangerServiceDefServiceBase.populateRangerEnumElementDefToXX, enumDef can not be null");
throw restErrorUtil.createRESTException("enumDef cannot be null.", MessageEnums.DATA_NOT_FOUND);
}
<BUG>xObj = (XXEnumElementDef) rangerAuditFields.populateAuditFields(xObj, enumDef);
xObj.setEnumdefid(enumDef.getId());</BUG>
xObj.setItemId(vObj.getItemId());
xObj.setName(vObj.getName());
xObj.setLabel(vObj.getLabel());

XXEnumDef enumDef, int operationContext) {
if(enumDef == null) {
LOG.error("RangerServiceDefServiceBase.populateRangerEnumElementDefToXX, enumDef can not be null");
throw restErrorUtil.createRESTException("enumDef cannot be null.", MessageEnums.DATA_NOT_FOUND);
}
xObj = rangerAuditFields.populateAuditFields(xObj, enumDef);
xObj.setEnumdefid(enumDef.getId());
xObj.setItemId(vObj.getItemId());
xObj.setName(vObj.getName());
xObj.setLabel(vObj.getLabel());
