@Override
    public ClientBean createClient(String organizationId, NewClientBean bean)
        throws OrganizationNotFoundException, ClientAlreadyExistsException, NotAuthorizedException, InvalidNameException {
        LOGGER.debug("Attempting to create client {0} in org {1}", bean, organizationId);
        securityContext.checkPermissions(PermissionType.clientEdit, organizationId);
        // TODO handle with interceptor?
        // 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 clientService.createClient(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