byte[] serializedAttribute = serialize(attribute);
Field[] classfileField = m_classGen.getFields();
for (int i = 0; i < classfileField.length; i++) {
if (classfileField[i].getName().equals(field.getName())) {
FieldGen fieldGen = new FieldGen(classfileField[i], m_constantPoolGen);
Attribute attr = new Unknown(
m_constantPoolGen.addUtf8(AttributeEnhancer.CUSTOM_ATTRIBUTE),
serializedAttribute.length, serializedAttribute,
m_constantPoolGen.getConstantPool()
);
fieldGen.addAttribute(attr);