@Override
    public ApiBeanDto createApi(String organizationId, NewApiBean bean)
        throws OrganizationNotFoundException, ApiAlreadyExistsException, NotAuthorizedException, InvalidNameException {
        securityContext.checkPermissions(PermissionType.apiEdit, organizationId);
        // As an upload will have happened separately, we need to attach to the blob so that it doesn't get wiped out later.
        blobStore.attachToBlob(bean.getImage());
        return apiService.createApi(organizationId, bean);
    }
REST layer for Organization

TODO(msavy): split this into multiple interfaces & impls (ApiResource, ClientAppResource, etc).

@author eric.wittmann@redhat.com
@author marc@blackparrotlabs.io
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/OrganizationResourceImpl.java