@Override
    public OrganizationBean createOrg(NewOrganizationBean newOrgDto)
        throws OrganizationAlreadyExistsException, NotAuthorizedException, InvalidNameException {
        if (config.isAdminOnlyOrgCreationEnabled()) {
            securityContext.checkAdminPermissions();
        }
        LOGGER.debug("Attempting to create org: {0}", newOrgDto);
        return organizationService.createOrg(newOrgDto);
    }
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