throws RepositoryLoginException, RepositoryException {
String claimant = sessionManager.getIdentity(docbase).getUser();
MockRepositoryDocumentStore store = ((MockDmSession) sessionManager
.getSession(docbase)).getStore();
for (int j = 0; j < ids.length; j++) {
MockRepositoryDocument doc = store.getDocByID(ids[j]);// if no
// 'content'
// defined,
// doc==null
if (doc != null) {
MockRepositoryPropertyList pl = doc.getProplist();
MockRepositoryProperty p = pl.getProperty("acl");
if (p != null) { // If doc contains acls
String[] acl = p.getValues();
for (int i = 0; i < acl.length; i++) {
if (claimant.equals(acl[i])) {