* @param copyFrom
*/
public static void copyCustomAttributes(final CtMethod copyTo, final CtMethod copyFrom) {
List attributes = copyFrom.getMethodInfo().getAttributes();
for (Iterator iterator = attributes.iterator(); iterator.hasNext();) {
AttributeInfo attributeInfo = (AttributeInfo) iterator.next();
if (attributeInfo.getName().startsWith(AttributeEnhancer.CUSTOM_ATTRIBUTE)) {
copyTo.setAttribute(attributeInfo.getName(), attributeInfo.get());
//FIXME bug here = ALEX WHAT DO YOU MEAN????
//System.out.println("JavassistHelper.copyCustomAttributes " + copyFrom.getName() + " to " +
// copyTo.getName() + " " + attributeInfo.getName());