@return The new instance
@see ImageInstance class documentation for details.
*/
public ImageInstance addInstance( VolumeBase volume, File instanceFile, int instanceType ) {
ODMGXAWrapper txw = new ODMGXAWrapper();
txw.lock( this, Transaction.WRITE );
// Vector origInstances = getInstances();
ImageInstance instance = ImageInstance.create( volume, instanceFile, this, instanceType );
instances.add( instance );
// If this is the first instance or we are adding original image we need to invalidate