public void stopCompound(string name)
 {
     repository.addCollection(new CompoundShapeCollection(currentCompound, name));
     currentCompound = null;
 }