@Override
    public OrganizationBean getOrg(String organizationId) throws OrganizationNotFoundException {
        LOGGER.debug("Attempting to get org: {0}", organizationId);
        OrganizationBean organizationBean = organizationService.getOrg(organizationId);
        // Hide sensitive data and set only needed data for the UI
        if (securityContext.hasPermission(PermissionType.orgView, organizationId)){
            return organizationBean;
        } else {
            return RestHelper.hideSensitiveDataFromOrganizationBean(organizationBean);
        }
    }
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