*
* @param method
* the new function
*/
public void setFunction(AnnotatedFieldMethod method) {
final Property function = method.getFunction();
if (map.containsKey(function)) {
throw new HeaderDefinitionError(method.getMethod().getDeclaringClass(),
"duplicate " + function + " method declarations for field "
+ parent.getName());