List vbList = m.getVarBindList().getVarBindList();
for (int i = 0; i < vbList.size(); i++)
{
VarBind vb = (VarBind)vbList.get(i);
// Append the var bind. Interrogate read vb for OID and
// variable tag. The later is used as the key passed to the
// wrapper in order for it to locate the required value. That
// value and the aforementioned OID are used to generate the
// variable binding
trapPdu.addVarBind(
this.snmpVBFactory.make(vb.getOid(), wrapper.get(vb.getTag())));
}
}
else
{
log.warn("Varbind mapping failure: null wrapper defined for " +