try
{
//We are looking for one exact match, so getting upto 3 records is fine
TModelList list = registry.findTModel(namePatterns, null, null, juddiFindQualifiers, 3);
if (list != null) {
TModelInfos infos = list.getTModelInfos();
if (infos != null) {
List<TModelInfo> tmodelInfoList = infos.getTModelInfo();
if (tmodelInfoList.size() > 1) {
throw new InvalidRequestException("Multiple matches found:" + tmodelInfoList.size());
}
if (tmodelInfoList.size() ==1) {
TModelInfo info = tmodelInfoList.get(0);