public ContentObject getObject(ContentType type, String id) {
		if (type instanceof RegionType)
			return getRegion(id);
		else if (type instanceof LowLevelTextType) { //Text lines, word, glyph
			for (int i=0; i<regions.size(); i++) {
				Region reg = regions.getAt(i); 
				if (reg instanceof LowLevelTextContainer) {
					ContentObjectRelation rel = getLowLevelTextObject((LowLevelTextContainer)reg, (LowLevelTextType)type, id);
					if (rel != null)
						return rel.getObject2();
				}
			}		
		}
		return null;
	}