public ComponentType getComponentType(string type) { var t = getTypeByName(type); var compType = ComponentTypeManager.GetTypeFor(t); return compType; }