Got rid of getRestrictedType, does not belong here as it might cover several xsds.