Set resultSet = new HashSet();
StmtIterator statements = handlerResource
.listProperties(RWCF.requiredPermission);
while (statements.hasNext()) {
Resource currentObject = statements.nextStatement().getResource();
resultSet.add(new RPermission(currentObject));
}
statements.close();
statements = handlerResource.listProperties(AUTHORIZATION.requires);
while (statements.hasNext()) {
Resource currentObject = statements.nextStatement().getResource();
resultSet.add(new RPermission(currentObject));
}
statements.close();
requiredPermissions = (Permission[]) resultSet
.toArray(new Permission[resultSet.size()]);
}