private static void setExportIsolationPolicy(RegionFilterBuilder builder, ProvideCapabilityHeader header, BasicSubsystem subsystem) throws InvalidSyntaxException {
if (header == null)
return;
for (ProvideCapabilityHeader.Clause clause : header.getClauses()) {
ProvideCapabilityCapability capability = new ProvideCapabilityCapability(clause, subsystem);
String policy = capability.getNamespace();
StringBuilder filter = new StringBuilder("(&");
for (Entry<String, Object> attribute : capability.getAttributes().entrySet())
filter.append('(').append(attribute.getKey()).append('=').append(attribute.getValue()).append(')');
filter.append(')');
if (logger.isDebugEnabled())
logger.debug("Allowing " + policy + " of " + filter);
builder.allow(policy, filter.toString());