//
// I've had a go at making the code do that below. However there is some question
// about what the appliesTo field means and it's hard to get here from the
// binder so until we sort out the appliesTo question this code isn't used
CompositeContext compositeContext = ((RuntimeComponent)epr.getComponent()).getComponentContext().getCompositeContext();
Composite domainComposite = compositeContext.getDomainComposite();
Definitions systemDefinitions = compositeContext.getSystemDefinitions();
if (systemDefinitions == null ||
(systemDefinitions.getPolicySets().isEmpty() &&
systemDefinitions.getExternalAttachments().isEmpty()) ) {
return;