if (request.getPhase() == Phase.VIEW) {
if (result instanceof Response.Content) {
final Collection<Chunk.Property<String>> bar = foo(request.getHandler().getMethod(), Collections.<Chunk.Property<String>>emptyList());
Response.Status status = (Response.Status)result;
if ((bar.size() > 0)) {
status = new Response.Content(status.getCode(), new StreamableDecorator(status.streamable()) {
@Override
protected void sendHeader(Stream consumer) {
for (Chunk.Property<String> asset : bar) {
consumer.provide(asset);
}