public DefaultPlexusContainer call() throws Exception
{
try
{
ContainerConfiguration config = new DefaultContainerConfiguration().setAutoWiring(true);
plexusContainer = new DefaultPlexusContainer(config);
ConsoleLoggerManager loggerManager = new ConsoleLoggerManager();
loggerManager.setThreshold("ERROR");
((DefaultPlexusContainer) plexusContainer).setLoggerManager(loggerManager);
return (DefaultPlexusContainer) plexusContainer;
}