//this is normally the Install class firing up
log.warn(new ErrorMessage("errors.tmodel.ReferentialIntegrityNullEM"));
} else {
//Collections.sort(buildInTmodels);
//if ((buildInTmodels, tmodelKey) == -1)
Tmodel modelTModel = null;
{
EntityTransaction tx = em.getTransaction();
try {
tx.begin();
modelTModel = em.find(org.apache.juddi.model.Tmodel.class, tmodelKey);
if (modelTModel == null) checked = false;
else {
for (org.apache.juddi.model.KeyedReference ref : modelTModel.getCategoryBag().getKeyedReferences()) {
if ("uddi-org:types:unchecked".equalsIgnoreCase(ref.getKeyName())) {
checked = false;
break;
}
}