@RequiresSession
  public E findByPK(K pk) {
    return entityManagerProvider.get().find(entityClass, pk);
  }
Retrieves entity by primary key.

@param pk primary key
@return null if there is no suitable entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/CrudDAO.java