class Schema {

	public Type findType(String idOrName) {
		if (typeMap.containsKey(idOrName)) {
			return typeMap.get(idOrName);
		} else if (typeMap.containsKey(Class.nameToId(idOrName))) {
			return typeMap.get(Class.nameToId(idOrName));
		} else if (typeMap.containsKey(Enum.nameToId(idOrName))) {
			return typeMap.get(Enum.nameToId(idOrName));
		}
		return null;
	}

}