private static boolean isCacheContainsAllEntryAttributes(WSResourceConfig targetConfig, List<RNSEntryResponseType> entries)
	{
		String targetContainerId = targetConfig.getContainerId();
		if (targetContainerId == null)
			return true;
		boolean attributesMissingFromResourcesOfSameContainer = false;
		for (RNSEntryResponseType entry : entries) {
			URI entryWSIndentifier = CacheUtils.getEPI(entry.getEndpoint());
			WSResourceConfig entryConfig = (WSResourceConfig) CacheManager.getItemFromCache(entryWSIndentifier, WSResourceConfig.class);
			if (entryConfig == null)
				continue;
			String entryContainerId = entryConfig.getContainerId();
			if (targetContainerId.equals(entryContainerId)) {
				// A checking on permissions-string attribute has been made because it is applicable
				// for both RNS and ByteIO. A thorough testing on all attributes will be an overkill.
				Object permissionProperty = CacheManager.getItemFromCache(entryConfig.getWsIdentifier(),
					GenesisIIBaseRP.PERMISSIONS_STRING_QNAME, MessageElement.class);
				if (permissionProperty == null) {
					attributesMissingFromResourcesOfSameContainer = true;
					break;
				}
			}
		}
		return !attributesMissingFromResourcesOfSameContainer;
	}
private static boolean isCacheContainsAllEntryAttributes(WSResourceConfig targetConfig, List<RNSEntryResponseType> entries)
	{
		String targetContainerId = targetConfig.getContainerId();
		if (targetContainerId == null)
			return true;
		boolean attributesMissingFromResourcesOfSameContainer = false;
		for (RNSEntryResponseType entry : entries) {
			URI entryWSIndentifier = CacheUtils.getEPI(entry.getEndpoint());
			WSResourceConfig entryConfig = (WSResourceConfig) CacheManager.getItemFromCache(entryWSIndentifier, WSResourceConfig.class);
			if (entryConfig == null)
				continue;
			String entryContainerId = entryConfig.getContainerId();
			if (targetContainerId.equals(entryContainerId)) {
			
			
				Object permissionProperty = CacheManager.getItemFromCache(entryConfig.getWsIdentifier(),
					GenesisIIBaseRP.PERMISSIONS_STRING_QNAME, MessageElement.class);
				if (permissionProperty == null) {
					attributesMissingFromResourcesOfSameContainer = true;
					break;
				}
			}
		}
		return !attributesMissingFromResourcesOfSameContainer;
	}
private static boolean iscachecontainsallentryattributes(wsresourceconfig targetconfig, list<rnsentryresponsetype> entries) { string targetcontainerid = targetconfig.getcontainerid(); if (targetcontainerid == null) return true; boolean attributesmissingfromresourcesofsamecontainer = false; for (rnsentryresponsetype entry : entries) { uri entrywsindentifier = cacheutils.getepi(entry.getendpoint()); wsresourceconfig entryconfig = (wsresourceconfig) cachemanager.getitemfromcache(entrywsindentifier, wsresourceconfig.class); if (entryconfig == null) continue; string entrycontainerid = entryconfig.getcontainerid(); if (targetcontainerid.equals(entrycontainerid)) { object permissionproperty = cachemanager.getitemfromcache(entryconfig.getwsidentifier(), genesisiibaserp.permissions_string_qname, messageelement.class); if (permissionproperty == null) { attributesmissingfromresourcesofsamecontainer = true; break; } } } return !attributesmissingfromresourcesofsamecontainer; }