}
private static TerminusExpiryPolicy convertExpiryPolicy(SWIGTYPE_p_pn_terminus_t source_t)
{
pn_expiry_policy_t expiry = Proton.pn_terminus_get_expiry_policy(source_t);
TerminusExpiryPolicy policy = null;
if(pn_expiry_policy_t.PN_NEVER.equals(expiry))
{
policy = TerminusExpiryPolicy.NEVER;
}
else if(pn_expiry_policy_t.PN_CONNECTION_CLOSE.equals(expiry))