http://trac.openmicroscopy.org.uk/ome/wiki/OmeroJava lots of example code