containerClass = ContextClassLoader.loadClass(aspectClass.getClassLoader(), DEFAULT_ASPECT_CONTAINER);
} else {
containerClass = ContextClassLoader.loadClass(aspectClass.getClassLoader(), containerClassName);
}
Constructor constructor = containerClass.getConstructor(new Class[]{AspectContext.class});
final AspectContext aspectContext = new AspectContext(
aspectDefinition.getSystemDefinition().getUuid(),
aspectClass,
aspectDefinition.getName(),
DeploymentModel.getDeploymentModelAsInt(aspectDefinition.getDeploymentModel()),
aspectDefinition,
aspectDefinition.getParameters()
);
final AspectContainer container = (AspectContainer) constructor.newInstance(new Object[]{aspectContext});
aspectContext.setContainer(container);
return container;
} catch (InvocationTargetException e) {
throw new DefinitionException(e.getTargetException().toString());
} catch (NoSuchMethodException e) {
throw new DefinitionException(