public Close construct(Object underlying)
{
if(underlying instanceof List)
{
List list = (List) underlying;
Close obj = new Close();
int position = 0;
final int size = list.size();
if(position < size)
{
Object val = list.get(position);
position++;
if(val != null)
{
try
{
obj.setError( (org.apache.qpid.amqp_1_0.type.transport.Error) val );
}
catch(ClassCastException e)
{
// TODO Error