@Override public AbstractWriteHandle getContent() { if (modifiedContent != null) { StringHandle h = new StringHandle(modifiedContent); return format != null ? h.withFormat(format) : h; } InputStreamHandle h = null; try { h = new InputStreamHandle(resource.getInputStream()); } catch (IOException e) { throw new RuntimeException(e); } return format != null ? h.withFormat(format) : h; }