import org.apache.ranger.common.ContextUtil;
import org.apache.ranger.common.DateUtil;
import org.apache.ranger.entity.XXDBBase;
import org.springframework.stereotype.Component;
@Component
<BUG>public class RangerAuditFields<T extends XXDBBase> {
public T populateAuditFields(T xObj, T parentObj) {
xObj.setCreateTime(parentObj.getCreateTime());</BUG>
xObj.setUpdateTime(parentObj.getUpdateTime());
xObj.setAddedByUserId(parentObj.getAddedByUserId());

import org.apache.ranger.common.ContextUtil;
import org.apache.ranger.common.DateUtil;
import org.apache.ranger.entity.XXDBBase;
import org.springframework.stereotype.Component;
@Component
public class RangerAuditFields {
public <T extends XXDBBase, PARENT extends XXDBBase> T populateAuditFields(T xObj, PARENT parentObj) {
xObj.setCreateTime(parentObj.getCreateTime());
xObj.setUpdateTime(parentObj.getUpdateTime());
xObj.setAddedByUserId(parentObj.getAddedByUserId());
