public Discharge construct(Object underlying)
{
if(underlying instanceof List)
{
List list = (List) underlying;
Discharge obj = new Discharge();
int position = 0;
final int size = list.size();
if(position < size)
{
Object val = list.get(position);
position++;
if(val != null)
{
try
{
obj.setTxnId( (Binary) val );
}
catch(ClassCastException e)
{
// TODO Error
}
}
}
else
{
return obj;
}
if(position < size)
{
Object val = list.get(position);
position++;
if(val != null)
{
try
{
obj.setFail( (Boolean) val );
}
catch(ClassCastException e)
{
// TODO Error