public String invokeApplication(final FacesContext facesContext) {
final Controller controller = (Controller) VariableResolverUtils.resolveVariable(facesContext, "controller");
final Address address = controller.getCurrentAddress();
if (address.hasPicture()) {
final Picture picture = address.getPicture();
final byte[] content = picture.getContent();
final HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
if (content != null && content.length > 0) {
response.setContentType(picture.getContentType());
final ByteArrayInputStream inputStream = new ByteArrayInputStream(content);
try {
IOUtils.copy(inputStream, response.getOutputStream());
} catch (final IOException e) {
LOG.error("", e);