As per Guidewire below are the alternative for setFieldValue maskEntityType.IntrinsicType.TypeInfo.getProperty("AssignedRisk").Accessor.setValue(maskEntityType, true)
or
target.IntrinsicType.TypeInfo.getProperty(fieldName).Accessor.setValue(target, srcEntity.getFieldValue(field.Name))