{
checkPropertyName(propertyName);
checkWritableProperties();
if (object == null)
{
throw new MessageFormatException(AMQPInvalidClassException.INVALID_OBJECT_MSG + "null");
}
else if (!ALLOWED.contains(object.getClass()))
{
throw new MessageFormatException(AMQPInvalidClassException.INVALID_OBJECT_MSG + object.getClass());
}
setApplicationHeader(propertyName, object);
}