public SaslMechanisms newInstance(Object described)
{
List l = (List) described;
SaslMechanisms o = new SaslMechanisms();
if(l.isEmpty())
{
throw new DecodeException("The sasl-server-mechanisms field cannot be omitted");
}
Object val0 = l.get( 0 );
if( val0 == null || val0.getClass().isArray() )
{
o.setSaslServerMechanisms( (Symbol[]) val0 );
}
else
{
o.setSaslServerMechanisms( (Symbol) val0 );
}
return o;
}