}
private Messages createMessages(String location, Locale locale, String propname)
{
ComponentMessagesSourceImpl source = new ComponentMessagesSourceImpl();
source.setClasspathResourceFactory(new ClasspathResourceFactoryImpl(new DefaultClassResolver()));
source.setComponentPropertySource(new NullComponentPropertySource());
source.setComponentResourceResolver(new ComponentResourceResolverImpl());
IComponentSpecification spec = newSpec(location);
spec.setLocation(_locationFixture);