user = (User) admin.getRole(u);
} catch (ClassCastException e) {
throw new IllegalArgumentException("Not a user: " + u);
}
try {
return new OSGiAuthorization(admin.getAuthorization(user))
.asCompositeData();
} catch (OpenDataException e) {
throw new IOException("Unable to create open data type: " + e);
}
}