CurrentEnvModule envAttributeModule = new CurrentEnvModule();
SelectorModule selectorAttributeModule = new SelectorModule();
// Setup the AttributeFinder just like we setup the PolicyFinder. Note
// that unlike with the policy finder, the order matters here.
AttributeFinder attributeFinder = new AttributeFinder();
List<Object> attributeModules = new ArrayList<Object>();
attributeModules.add(envAttributeModule);
attributeModules.add(selectorAttributeModule);
attributeModules.add(new CarbonAttributeFinder());
attributeFinder.setModules(attributeModules);
String cacheInterval = ServerConfiguration.getInstance().getFirstProperty(
PDP_DECISION_CACHING_INTERVAL);
if (cacheInterval != null) {