while (it.hasNext())
{
Subscription subscription = it.next();
SubHandling subHandling = policy.getPolicy(subscription.getUri());
State state = subscription.getState();
boolean authorised = subscription.isAuthorized();
switch (subHandling)
{
case ALLOW:
subscription.setState(State.ACTIVE, Reason.APPROVED, true);