@Transactional
  public void create(ExtensionEntity extension)
      throws AmbariException {
    EntityManager entityManager = entityManagerProvider.get();
    entityManager.persist(extension);
  }
Persists a new extension instance.

@param extension
         the extension to persist (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ExtensionDAO.java