{
for (Class<? extends WorkContext> requiredWorkContext : requiredWorkContexts)
{
if (md instanceof JCA16Base)
{
JCA16Base jmd = (JCA16Base)md;
if (jmd.getRequiredWorkContexts() == null)
jmd.setRequiredWorkContexts(new ArrayList<String>());
if (!jmd.getRequiredWorkContexts().contains(requiredWorkContext.getName()))
{
if (trace)
log.trace("RequiredWorkContext=" + requiredWorkContext.getName());
jmd.getRequiredWorkContexts().add(requiredWorkContext.getName());
}
}
}
}