map.put("http://www.jboss.com/test/policy3", NopAssertionDeployer.class);
PolicyDeployer deployer = PolicyDeployer.newInstance(map);
Policy policy = new Policy("myID");
policy.addTerm(new PrimitiveAssertion(new QName("http://www.jboss.com/test/policy","test")));
policy.addTerm(new PrimitiveAssertion(new QName("http://www.jboss.com/test/policy2","test2")));
deployer.deployServerside(policy, null);
policy.addTerm(new PrimitiveAssertion(new QName("http://www.jboss.com/test/policy4","test4")));
try
{
deployer.deployServerside(policy, null);