Resource resource = new ClasspathResource(new DefaultClassResolver(), "/org/apache/tapestry/junit/Application.application");
ILibrarySpecification pspec = new LibrarySpecification();
pspec.setSpecificationLocation(resource);
INamespace parentNamespace = new Namespace(null, null, pspec, null);
INamespace namespace = new Namespace(null, parentNamespace, newLibrarySpec(), null);
page.setNamespace(namespace);
return source.getMessages(page);
}