if (keyList == null || keyList.size() == 0)
throw new ValueNotAllowedException(new ErrorMessage("errors.keybag.NoInput"));
// Test that publisher owns keys using operational info.
for (String key : keyList) {
UddiEntity uddiEntity = em.find(UddiEntity.class, key);
// According to spec, it's ok if a key doesn't match any known entities, it will just be ignored. However, the publisher must own
// the entity in order to discard the associated token.
if (uddiEntity != null) {
if (!publisher.isOwner(uddiEntity))