}
@Override
public void addPlugin(ComponentPlugin plugin) {
if (plugin instanceof BindReferencePlugin) {
BindReferencePlugin brplugin = (BindReferencePlugin) plugin;
InitialContext initialContext = getInitialContext();
try {
initialContext.lookup(brplugin.getBindName());
// If we reach this step it means that something is already bound
} catch (NamingException e) {
super.addPlugin(plugin);
}
}