code: public static ComplexType getAndCheckComplexType(EntityDataModel entityDataModel, Class<?> javaType) {
          return checkIsComplexType(getAndCheckType(entityDataModel, javaType));
      }
docs: Gets the OData type for a Java type and checks if the OData type is a complex type; throws an exception if the
  OData type is not a complex type.
  
  @param entityDataModel The entity data model.
  @param javaType        The Java type.
  @return The OData complex type for the Java type.
  @throws ODataSystemException If there is no OData type for the specified Java type or if the OData type is not
  a complex type.