Yeah I found a better way, I should have looked at the data interface more closely.

You can do something like data.retrieve(User.class, "role", Role.ADMIN);