@Override
    public void apiVersion(ApiVersionBean apiVersion) {
        currentApiVersion = apiVersion;

        try {
            logger.info(Messages.i18n.format("StorageImportDispatcher.ImportingApiVersion") + apiVersion.getVersion()); //$NON-NLS-1$
            apiVersion.setApi(currentApi);
            apiVersion.setId(null);

            storage.createApiVersion(apiVersion);

            apiVersion.getPlans().forEach(p -> p.setApiVersion(apiVersion));

            if (apiVersion.getStatus() == ApiStatus.Published) {
                apisToPublish.add(new EntityInfo(
                        apiVersion.getApi().getOrganization().getId(),
                        apiVersion.getApi().getId(),
                        apiVersion.getVersion()
                ));
            }
        } catch (StorageException e) {
            error(e);
        }
    }
@see io.apiman.manager.api.exportimport.read.IImportReaderDispatcher#apiVersion(io.apiman.manager.api.beans.apis.ApiVersionBean)
manager/api/export-import/src/main/java/io/apiman/manager/api/exportimport/manager/StorageImportDispatcher.java