@RequiresSession
  public List<MpackEntity> findByNameVersion(String mpackName, String mpackVersion) {
    TypedQuery<MpackEntity> query = m_entityManagerProvider.get().createNamedQuery("MpackEntity.findByNameVersion", MpackEntity.class);
    query.setParameter("mpackName", mpackName);
    query.setParameter("mpackVersion", mpackVersion);
    return m_daoUtils.selectList(query);
  }
Gets mpacks with specified mpack name and mpack version.

@param mpackName
@param mpackVersion
@return the mpack or {@code null} if none exists.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/MpackDAO.java