Returns the cp instance matching the UUID and group.

@param uuid the cp instance's UUID
@param groupId the primary key of the group
@return the matching cp instance
@throws PortalException if a matching cp instance could not be found
344007
public static com.liferay.commerce.product.model.CPInstance getCPInstanceByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().getCPInstanceByUuidAndGroupId(uuid, groupId);
	}
543423
@Override
	public CPDefinitionGroupedEntry removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPDefinitionGroupedEntryException {
		CPDefinitionGroupedEntry cpDefinitionGroupedEntry = findByUUID_G(uuid,
				groupId);

		return remove(cpDefinitionGroupedEntry);
	}
575613
public QueryControllerGroup getGroup(String groupId) {
		int index = getElementPosition(groupId);
		if (index == -1) {
		    return null;
		}
		QueryControllerGroup group = (QueryControllerGroup) entities.get(index);
		return group;
	}
562563
public static Menu get(final UUID _uuid)
        throws CacheReloadException
    {
        return AbstractUserInterfaceObject.<Menu>get(_uuid, Menu.class, CIAdminUserInterface.Menu.getType());
    }
1257660
public static java.util.List<com.liferay.commerce.product.model.CPInstance> getCPInstancesByUuidAndCompanyId(
		String uuid, long companyId) {
		return getService().getCPInstancesByUuidAndCompanyId(uuid, companyId);
	}
966209
@Override
	public List<CProduct> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1074560
@Override
	public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
		String uuid, long companyId) {
		return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId);
	}
679839
@Override
	public com.liferay.commerce.product.model.CPFriendlyURLEntry getCPFriendlyURLEntry(
		long CPFriendlyURLEntryId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _cpFriendlyURLEntryLocalService.getCPFriendlyURLEntry(CPFriendlyURLEntryId);
	}
1305335
public static com.liferay.commerce.product.model.CPDefinition fetchCPDefinitionByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPDefinitionByUuidAndGroupId(uuid, groupId);
	}
1065040
@Override
	public CPDefinition removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPDefinitionException {
		CPDefinition cpDefinition = findByUUID_G(uuid, groupId);

		return remove(cpDefinition);
	}
458501
@Override
	public com.liferay.commerce.product.model.CProduct getCProductByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _cProductLocalService.getCProductByUuidAndGroupId(uuid, groupId);
	}
496091
public Group getGroupByUUID(final UUID UUID) {
        List<Group> allGroups = getGroups();

        List<Group> groups = ListFilter.filter(allGroups, new Filter<Group>() {

            @Override
            public boolean matches(Group item) {

                if (item.getUuid() != null && item.getUuid().compareTo(UUID) == 0) {
                    return true;
                } else {
                    return false;
                }
            }
        });

        if (groups.size() == 1) {
            return groups.get(0);
        } else {
            return null;
        }
    }
1352868
@Override
	public com.liferay.commerce.product.model.CPInstance fetchCPInstanceByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpInstanceLocalService.fetchCPInstanceByUuidAndGroupId(uuid,
			groupId);
	}
266786
@Override
	public CommerceCountry getCommerceCountryByUuidAndGroupId(String uuid,
		long groupId) throws PortalException {
		return commerceCountryPersistence.findByUUID_G(uuid, groupId);
	}
1213325
public static Group get(final UUID _uuid)
        throws CacheReloadException
    {
        final Cache<UUID, Group> cache = InfinispanCache.get().<UUID, Group>getCache(Group.IDCACHE);
        if (!cache.containsKey(_uuid) && !Group.getGroupFromDB(Group.SQL_UUID, _uuid.toString())) {
            cache.put(_uuid, Group.NULL, 100, TimeUnit.SECONDS);
        }
        final Group ret = cache.get(_uuid);
        return ret.equals(Group.NULL) ? null : ret;
    }
633202
public String getInstanceEndpoint(String entityName, String groupId, String id) {
		String edp = getCollectionEndpoint(entityName, groupId);

		if (id != null && !id.isEmpty()) {
			edp += "/" + id;
		}

		return edp;
	}
1155488
public static CPDefinitionVirtualSetting removeByUUID_G(String uuid,
		long groupId)
		throws com.liferay.commerce.product.type.virtual.exception.NoSuchCPDefinitionVirtualSettingException {
		return getPersistence().removeByUUID_G(uuid, groupId);
	}