ModelEntity uiAttributeEntity = delegator.getModelEntity(
"UiAttribute");
HashMap uiAttributeFindMap = new HashMap();
uiAttributeFindMap.put("attributeId", searchAttributeId);
GenericPK uiAttributePk = new GenericPK(uiAttributeEntity,
uiAttributeFindMap);
GenericValue uiAttributeGenericValue = delegator.findByPrimaryKeyCache(uiAttributePk);
if (uiAttributeGenericValue == null) {
throw new GenericEntityException(
"No Ui Attribute was found for ui_attribute.attribute_id=" +
searchAttributeId);
}
String searchAttribName = uiAttributeGenericValue.getString(
"attributeName");
String searchEntityId = uiAttributeGenericValue.getString(
"entityId");
ModelEntity uiEntityEntity = delegator.getModelEntity("UiEntity");
HashMap uiEntityFindMap = new HashMap();
uiEntityFindMap.put("entityId", searchEntityId);
GenericPK uiEntityPk = new GenericPK(uiEntityEntity, uiEntityFindMap);
GenericValue uiEntityGenericValue = delegator.findByPrimaryKeyCache(uiEntityPk);
String searchEntityName = uiEntityGenericValue.getString(
"entityName");
String searchAttribValue = nameToSearchParam.replace('*', '%') +