class AttributeValueListDaoHelper {

    public AttributeValueListEntity getAttributeValueListEntity(AttributeValueListKey attributeValueListKey)
    {
        AttributeValueListEntity attributeValueListEntity = attributeValueListDao.getAttributeValueListByKey(attributeValueListKey);

        if (attributeValueListEntity == null)
        {
            throw new ObjectNotFoundException(String
                .format("Attribute value list with name \"%s\" doesn't exist for namespace \"%s\".", attributeValueListKey.getAttributeValueListName(),
                    attributeValueListKey.getNamespace()));
        }

        return attributeValueListEntity;
    }

}