public DwgObject getDwgSuperEntity(DwgObject entity) {
		if(entity.hasSubEntityHandle()){
			int handleCode = entity.subEntityHandle.getCode();
			int offset = entity.subEntityHandle.getOffset();
			int handle = -1;

			DwgObject object;

			switch(handleCode){
			// TODO: case 0x2:
			// TODO: case 0x3:
			case 0x4:
			case 0x5:
				handle = offset;
				break;
			// TODO: case 0x6:
			case 0x8:
				handle=entity.getHandle().getOffset() - 1;
				break;
			case 0xA:
				handle = entity.getHandle().getOffset() + offset;
				break;
			case 0xC:
				handle = entity.getHandle().getOffset() - offset;
				break;
			default:
				logger.warn ("DwgObject.getDwgSuperEntity: handleCode "+handleCode+" no implementado. offset = "+offset);
			}
			if(handle != -1){
				object = getDwgObjectFromHandle(handle);
				if(object != null)
					return object;
			}
		}
		return null;
	}