infrastructure for generic definition parser and namespace handler