{
byte[] result = new byte[10000];
int pos = 0;
final AMQPDescribedTypeRegistry typeRegistry = AMQPDescribedTypeRegistry.newInstance();
AMQFrame frame = AMQFrame.createAMQFrame((short) 0, (FrameBody) vals[0]);
FrameWriter writer = new FrameWriter(typeRegistry);
/*for(Object obj : vals)
{
final AMQPDescribedTypeRegistry typeRegistry = AMQPDescribedTypeRegistry.newInstance();
ValueWriter writer = typeRegistry.getValueWriter(obj);