case Avp.SESSION_ID: set.insertAvp(0, avpCode, value, vendorId, isMandatory, isProtected, isOctetString); break; case Avp.ORIGIN_HOST: int index = (firstAvp != null && firstAvp.getCode() == Avp.SESSION_ID) ? 1 : 0; set.insertAvp(index, avpCode, value, vendorId, isMandatory, isProtected, isOctetString); break; default:
case Avp.SESSION_ID: set.insertAvp(0, avpCode, value, vendorId, isMandatory, isProtected, false); break; case Avp.ORIGIN_HOST: int index = (firstAvp != null && firstAvp.getCode() == Avp.SESSION_ID) ? 1 : 0; set.insertAvp(index, avpCode, value, vendorId, isMandatory, isProtected, false); break; default:
case Avp.SESSION_ID: set.insertAvp(0, avpCode, value, vendorId, isMandatory, isProtected, isOctetString); break; case Avp.ORIGIN_HOST: int index = (firstAvp != null && firstAvp.getCode() == Avp.SESSION_ID) ? 1 : 0; set.insertAvp(index, avpCode, value, vendorId, isMandatory, isProtected, isOctetString); break; default:
case Avp.SESSION_ID: set.insertAvp(0, avpCode, value, vendorId, isMandatory, isProtected, false); break; case Avp.ORIGIN_HOST: int index = (firstAvp != null && firstAvp.getCode() == Avp.SESSION_ID) ? 1 : 0; set.insertAvp(index, avpCode, value, vendorId, isMandatory, isProtected, false); break; default:
case Avp.SESSION_ID: set.insertAvp(0, avpCode, avp.byteArrayValue(), avp.getVendorId(), avp.getMandatoryRule() != DiameterAvp.FLAG_RULE_MUSTNOT, avp.getProtectedRule() == DiameterAvp.FLAG_RULE_MUST); break; case Avp.ORIGIN_HOST: set.insertAvp(index, avpCode, avp.byteArrayValue(), avp.getVendorId(), avp.getMandatoryRule() != DiameterAvp.FLAG_RULE_MUSTNOT, avp.getProtectedRule() == DiameterAvp.FLAG_RULE_MUST); break; default:
case Avp.SESSION_ID: set.insertAvp(0, avpCode, avp.byteArrayValue(), avp.getVendorId(), avp.getMandatoryRule() != DiameterAvp.FLAG_RULE_MUSTNOT, avp.getProtectedRule() == DiameterAvp.FLAG_RULE_MUST); break; case Avp.ORIGIN_HOST: set.insertAvp(index, avpCode, avp.byteArrayValue(), avp.getVendorId(), avp.getMandatoryRule() != DiameterAvp.FLAG_RULE_MUSTNOT, avp.getProtectedRule() == DiameterAvp.FLAG_RULE_MUST); break; default:
message.getAvps().insertAvp(0, Avp.SESSION_ID, sessionId, true, false, false);