public Object[] getChildren(Object parentElement) {
RepositoryPlugin repoPlugin = (RepositoryPlugin) parentElement;
List<String> bsns;
try {
bsns = repoPlugin.list(null);
} catch (Exception e) {
logger.logError("Error querying repository " + repoPlugin.getName(), e);
bsns = Collections.emptyList();
}
return bsns.toArray(new String[bsns.size()]);