public AgentXResponsePDU removeAgentCaps(AgentXRemoveAgentCapsPDU pdu,
AgentXMasterSession session) {
AgentXResponsePDU response = createResponse(pdu, session);
if (session != null) {
OID index = session.removeAgentCaps(pdu.getId());
AgentCapabilityList agentCaps = getAgentCaps(pdu.getContext());
if (agentCaps != null) {
Object ac = agentCaps.removeSysOREntry(index);
if (ac == null) {
response.setErrorStatus(AgentXProtocol.AGENTX_UNKNOWN_AGENTCAPS);
}
}
else {