The InDesign Server CS4 SDK package contains java idmltools like 'ReplaceImages'. With this tool you change images within a IDML-document. On Adobe TV there is a presentation from Heath Lynn at the Adobe MAX 2008. The same tool (ReplaceImages) was shown as an AIR app. Is the source code available for download somewhere?