Contactpoint must be attached to a parent with a declared type