try {
broker.setSubject( db.getSecurityManager().getSystemSubject() );
Collection col = broker.getCollection(XmldbURI.ROOT_COLLECTION_URI);
final MetaData md = MetaData.get();
checkSub(broker, md, col);
} finally {
broker.setSubject(currentSubject);
}