group = (Group) admin.getRole(groupname);
} catch (ClassCastException e) {
throw new IllegalArgumentException("Not a group: " + groupname);
}
try {
return new OSGiGroup(group).asCompositeData();
} catch (OpenDataException e) {
throw new IOException("Cannot encode open data for group: " + e);
}
}