You added permission for this to the server, but if this is run against an older version of candlepin which does not yet support that, this should fail gracefully. I suggest catching an exception rather than checking for a capability in this case.