class PermissionsManager {

  @SuppressWarnings("unchecked")
  public Page<AbstractPermissions> getByInstance(
      String domainId, String instanceId, int maxItems, long skipCount)
      throws ServerException, NotFoundException {
    return (Page<AbstractPermissions>)
        getPermissionsDao(domainId).getByInstance(instanceId, maxItems, skipCount);
  }

  @Inject public  PermissionsManager(
      EventService eventService, Set<PermissionsDao<? extends AbstractPermissions>> daos);

}