@RequiresSession
  public PrivilegeEntity findById(Integer id) {
    return entityManagerProvider.get().find(PrivilegeEntity.class, id);
  }
Find a privilege with the given id.

@param id type id

@return a matching privilege or null
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PrivilegeDAO.java