private static void setExportIsolationPolicy(RegionFilterBuilder builder, SubsystemExportServiceHeader header, BasicSubsystem subsystem) throws InvalidSyntaxException {
if (header == null)
return;
String policy = RegionFilter.VISIBLE_SERVICE_NAMESPACE;
for (SubsystemExportServiceHeader.Clause clause : header.getClauses()) {
SubsystemExportServiceCapability capability = new SubsystemExportServiceCapability(clause, subsystem);
String filter = capability.getDirectives().get(SubsystemExportServiceCapability.DIRECTIVE_FILTER);
if (logger.isDebugEnabled())
logger.debug("Allowing " + policy + " of " + filter);
builder.allow(policy, filter.toString());
}
}