@SuppressWarnings("unchecked")
private void bindDefaultJndi(String prefix, AbstractEjbBeanManager server)
{
try {
EnterpriseApplication eApp = EnterpriseApplication.getCurrent();
if (prefix == null)
prefix = "";
else if (!prefix.endsWith("/"))
prefix = prefix + "/";
if (eApp != null && eApp.getName() != null)
prefix = prefix + eApp.getName() + "/";
prefix = prefix + server.getEJBName();
ClassLoader loader = Thread.currentThread().getContextClassLoader();