static public void secure(DestinationSecurityConfig destinationSecurity) {
try {
String policyId = getDestinationPoicyContextId(destinationSecurity.getBrokerName(), destinationSecurity.getDestination());
PolicyConfigurationFactory factory = PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration = factory.getPolicyConfiguration(policyId, true);
for (Iterator iter = destinationSecurity.getConsumeRoles().iterator(); iter.hasNext();) {
String role = (String) iter.next();
policyConfiguration.addToRole(role, new JMSDestinationPermission(
destinationSecurity.getDestination().getPhysicalName(), JMSDestinationPermission.CONSUME_ACTION));