private DeveloperApiPlanSummaryDto toDto(String orgId, ApiPlanSummaryBean apiPsb) {
        List<PolicyBean> planPolicies = tryAction(() -> Lists.newArrayList(storage.getAllPolicies(orgId, apiPsb.getPlanId(), apiPsb.getVersion(), PolicyType.Plan)));
        return new DeveloperApiPlanSummaryDto()
                .setPlanId(apiPsb.getPlanId())
                .setPlanName(apiPsb.getPlanName())
                .setPlanDescription(apiPsb.getPlanDescription())
                .setVersion(apiPsb.getVersion())
                .setRequiresApproval(apiPsb.getRequiresApproval())
                .setPlanPolicies(planPolicies)
                .setDiscoverability(apiPsb.getDiscoverability());
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/DevPortalService.java