}
public PDU createPDU(Target target) {
PDU request;
if (target.getVersion() == SnmpConstants.version3) {
request = new ScopedPDU();
ScopedPDU scopedPDU = (ScopedPDU) request;
if (contextEngineID != null) {
scopedPDU.setContextEngineID(contextEngineID);
}
if (contextName != null) {
scopedPDU.setContextName(contextName);
}
} else {
if (pduType == PDU.V1TRAP) {
v1TrapPDU.setTimestamp(sysUpTime.toLong());
request = v1TrapPDU;