private EjbJarInfo getEjbJarInfo(EARContext earContext, EjbModule ejbModule, ClassLoader classLoader) throws DeploymentException {
EarData earData = (EarData) earContext.getGeneralData().get(EarData.class);
if (earData.getEjbJars().isEmpty()) {
// temporary classloader is used for processing ejb annotations and byte code manipulation during ejb load
TemporaryClassLoader temporaryClassLoader = new TemporaryClassLoader(new URL[0], classLoader);
// create an openejb app module for the ear containing all ejb modules
AppModule appModule = new AppModule(classLoader, earContext.getConfigID().toString());
for (EjbModule module : earData.getEjbModuels()) {
module.setClassLoader(temporaryClassLoader);