code: protected Map<String, CmsType> readTypes(CmsXmlContentDefinition xmlContentDefinition, Locale locale) {
  
          CmsContentTypeVisitor visitor = new CmsContentTypeVisitor(getCmsObject(), null, locale);
          visitor.visitTypes(xmlContentDefinition, locale);
          return visitor.getTypes();
      }
docs: Reads the types from the given content definition and adds the to the map of already registered
  types if necessary.<p>
  
  @param xmlContentDefinition the XML content definition
  @param locale the messages locale
  
  @return the types of the given content definition