Use this API to fetch cmppolicy resource of given name .
160701
public static cmppolicy get(nitro_service service, String name) throws Exception{
		cmppolicy obj = new cmppolicy();
		obj.set_name(name);
		cmppolicy response = (cmppolicy) obj.get_resource(service);
		return response;
	}
1365826
public static cmppolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		cmppolicy obj = new cmppolicy();
		options option = new options();
		option.set_filter(filter);
		cmppolicy[] response = (cmppolicy[]) obj.getfiltered(service, option);
		return response;
	}
307473
public static sslpolicy get(nitro_service service, String name) throws Exception{
		sslpolicy obj = new sslpolicy();
		obj.set_name(name);
		sslpolicy response = (sslpolicy) obj.get_resource(service);
		return response;
	}
660859
private CmsResource readResourceFromCurrentOrRootSite(CmsObject cms, String name) throws CmsException {

        CmsResource resource = null;
        try {
            resource = cms.readResource(name, CmsResourceFilter.IGNORE_EXPIRATION);
        } catch (CmsVfsResourceNotFoundException e) {
            String originalSiteRoot = cms.getRequestContext().getSiteRoot();
            try {
                cms.getRequestContext().setSiteRoot("");
                resource = cms.readResource(name, CmsResourceFilter.IGNORE_EXPIRATION);
            } finally {
                cms.getRequestContext().setSiteRoot(originalSiteRoot);
            }

        }
        return resource;
    }
152668
public CmsResourceUtil getResourceUtil() {

        if (m_resourceUtil == null) {
            try {
                m_resourceUtil = new CmsResourceUtil(OpenCms.initCmsObject(getCms()));
                m_resourceUtil.setReferenceProject(getProject());
            } catch (CmsException ex) {
                if (LOG.isErrorEnabled()) {
                    LOG.error(ex.getLocalizedMessage(), ex);
                }
            }
        }
        return m_resourceUtil;
    }
163945
public static lbvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{
		lbvserver_copolicy_binding obj = new lbvserver_copolicy_binding();
		obj.set_name(name);
		lbvserver_copolicy_binding response[] = (lbvserver_copolicy_binding[]) obj.get_resources(service);
		return response;
	}
119401
public static cmpglobal_cmppolicy_binding[] get_filtered(nitro_service service, String filter) throws Exception{
		cmpglobal_cmppolicy_binding obj = new cmpglobal_cmppolicy_binding();
		options option = new options();
		option.set_filter(filter);
		cmpglobal_cmppolicy_binding[] response = (cmpglobal_cmppolicy_binding[]) obj.getfiltered(service, option);
		return response;
	}
187319
public static vpntrafficaction get(nitro_service service, String name) throws Exception{
		vpntrafficaction obj = new vpntrafficaction();
		obj.set_name(name);
		vpntrafficaction response = (vpntrafficaction) obj.get_resource(service);
		return response;
	}
1325673
private DataSource getDataSource(ComponentHelper cmp, Resource resource) {
    try {
      /*
       * by default the path is read from request "path" parameter
       * here we overwrite it via a synthetic resource because the path may be overwritten by validation logic
       * to ensure the path is not beyond the configured root path
       */
      ValueMap overwriteProperties = new ValueMapDecorator(ImmutableMap.<String, Object>of("path", resource.getPath()));
      Resource dataSourceResourceWrapper = GraniteUiSyntheticResource.wrapMerge(request.getResource(), overwriteProperties);
      return cmp.getItemDataSource(dataSourceResourceWrapper);
    }
    catch (ServletException | IOException ex) {
      throw new RuntimeException("Unable to get data source.", ex);
    }
  }
514510
public static tmtrafficpolicy get(nitro_service service, String name) throws Exception{
		tmtrafficpolicy obj = new tmtrafficpolicy();
		obj.set_name(name);
		tmtrafficpolicy response = (tmtrafficpolicy) obj.get_resource(service);
		return response;
	}
82469
public static csvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
		csvserver_cmppolicy_binding obj = new csvserver_cmppolicy_binding();
		obj.set_name(name);
		csvserver_cmppolicy_binding response[] = (csvserver_cmppolicy_binding[]) obj.get_resources(service);
		return response;
	}
674488
public static systemcmdpolicy[] get(nitro_service service) throws Exception{
		systemcmdpolicy obj = new systemcmdpolicy();
		systemcmdpolicy[] response = (systemcmdpolicy[])obj.get_resources(service);
		return response;
	}
683703
String getResourceIdOrThrow(CMAResource resource, String param) {
    final String resourceId = resource.getId();
    if (resourceId == null) {
      throw new IllegalArgumentException(String.format(
          "%s.setId() was not called.", param));
    }
    return resourceId;
  }
1282898
public static cmppolicy_cmpglobal_binding[] get(nitro_service service, String name) throws Exception{
		cmppolicy_cmpglobal_binding obj = new cmppolicy_cmpglobal_binding();
		obj.set_name(name);
		cmppolicy_cmpglobal_binding response[] = (cmppolicy_cmpglobal_binding[]) obj.get_resources(service);
		return response;
	}
9943
protected CmsResource getResource(CmsUUID structureId) throws CmsException {

        if (m_cachedResources.containsKey(structureId)) {
            return m_cachedResources.get(structureId);
        }
        return m_cms.readResource(structureId);
    }
749456
public static cmppolicylabel_binding[] get(nitro_service service, String labelname[]) throws Exception{
		if (labelname !=null && labelname.length>0) {
			cmppolicylabel_binding response[] = new cmppolicylabel_binding[labelname.length];
			cmppolicylabel_binding obj[] = new cmppolicylabel_binding[labelname.length];
			for (int i=0;i<labelname.length;i++) {
				obj[i] = new cmppolicylabel_binding();
				obj[i].set_labelname(labelname[i]);
				response[i] = (cmppolicylabel_binding) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
492839
public static csparameter get(nitro_service service) throws Exception{
		csparameter obj = new csparameter();
		csparameter[] response = (csparameter[])obj.get_resources(service);
		return response[0];
	}