public <T> T get(String organizationId, String id, Class<T> type) throws StorageException {
        try {
            EntityManager entityManager = getActiveEntityManager();
            OrganizationBean orgBean = entityManager.find(OrganizationBean.class, organizationId);
            Object key = new OrganizationBasedCompositeId(orgBean, id);
            return entityManager.find(type, key);
        } catch (Throwable t) {
            LOGGER.error(t.getMessage(), t);
            throw new StorageException(t);
        }
    }
Get object of type T

@param organizationId org id
@param id identity
@param type class of type T
@return Instance of type T
@throws StorageException if a storage problem occurs while storing a bean
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/AbstractJpaStorage.java