LOG.debug("Creating policy collection '" + XACMLConstants.POLICY_COLLECTION + "'...");  TransactionManager transact = broker.getBrokerPool().getTransactionManager(); Txn txn = transact.beginTransaction(); try
TransactionManager transact = broker.getBrokerPool().getTransactionManager(); Txn txn = transact.beginTransaction(); try
	public static Collection getPolicyCollection(DBBroker broker)	{				Collection policyCollection = broker.getCollection(XACMLConstants.POLICY_COLLECTION);		if(policyCollection == null)		{			LOG.debug("Creating policy collection '" + XACMLConstants.POLICY_COLLECTION + "'...");			        TransactionManager transact = broker.getBrokerPool().getTransactionManager();	        Txn txn = transact.beginTransaction();	        try			{	        	policyCollection = broker.getOrCreateCollection(txn, XACMLConstants.POLICY_COLLECTION);	            broker.saveCollection(txn, policyCollection);				transact.commit(txn);			}	        catch (EXistException e)			{	        	transact.abort(txn);	        	LOG.error("Error creating policy collection", e);	        	return null;			}	        catch (PermissionDeniedException e)			{	        	transact.abort(txn);	        	LOG.error("Error creating policy collection", e);	        	return null;			}		}		return policyCollection;	}