private List<Statement> setupResources(Expression context) {
assert context != null;
List<Statement> results = Lists.create();
for (Map.Entry<ResourceFragment, SimpleName> entry : resources.entrySet()) {
ResourceFragment resource = entry.getKey();
SimpleName field = entry.getValue();
results.add(new ExpressionBuilder(factory, factory.newThis())
.field(field)
.assignFrom(new TypeBuilder(factory, importer.toType(resource.getCompiled().getQualifiedName()))
.newObject()
.toExpression())
.toStatement());
results.add(new ExpressionBuilder(factory, factory.newThis())
.field(field)