private PolicyBuilderImpl createBuilder(Bus bus) {
PolicyBuilderImpl builder = new PolicyBuilderImpl();
builder.setBus(bus);
AssertionBuilderRegistry abr = new AssertionBuilderRegistryImpl();
builder.setAssertionBuilderRegistry(abr);
PrimitiveAssertionBuilder ab = new PrimitiveAssertionBuilder();
abr.registerBuilder(new QName("http://schemas.xmlsoap.org/ws/2002/12/secext", "SecurityToken"), ab);
abr.registerBuilder(new QName("http://schemas.xmlsoap.org/ws/2002/12/secext", "SecurityHeader"), ab);
abr.registerBuilder(new QName("http://schemas.xmlsoap.org/ws/2002/12/secext", "Integrity"), ab);
abr.registerBuilder(new QName("http://sample.org/Assertions", "A"), ab);