public void hasPermission(final AsyncCallback<Boolean> callback, final String... roleNames) {
MessageBuilder.createCall(new RemoteCallback<List<Role>>() {
@Override
public void callback(List<Role> roles) {
for (String roleName : roleNames) {
final Role role = new Role(roleName);
if (!roles.contains(role)) {
callback.onSuccess(false);
return;
}
}