public <T> void create(T bean) throws StorageException {
        if (bean == null) {
            return;
        }
        EntityManager entityManager = getActiveEntityManager();
        try {
            entityManager.persist(bean);
        } catch (Throwable t) {
            LOGGER.error(t.getMessage(), t);
            throw new StorageException(t);
        }
    }
@param bean the bean to create
@throws StorageException if a storage problem occurs while storing a bean
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/AbstractJpaStorage.java