## Consumer : Where is your payload? : Payload Operation

This section is used to specify the field or the method which is used to set or get the correlation header.
The access type can be a field or a method

- Example 1

package com.packagename;
public class CustomPayload {

private String correlationKey; // Will be used for custom correlation.

String key getCorrelationKey() {
return correlationKey;
}

}

In the example above the method 'setCorrelationKey(String key)' of class 'com.packagename.CustomPayload' is the method which will be used to set the payload.

Values to put in this section of the tool for the above example:
Access Type: method
Parameters Types:
Access Method Name: getCorrelationKey

Also as in the example above the field correlationKey of class 'com.packagename.CustomPayload' can directly be used to set the payload as well.

Values to put in this section of the tool for the above example:
Access Type: field
Parameters Type: String key
Field Name: correlationKey