/**
   * @param fullClsName Class name.
   * @return Expected type name according to configuration.
   */
  private String expectedTypeName(String fullClsName) {
    BinaryNameMapper mapper = cfg.getBinaryConfiguration().getNameMapper();

    if (mapper == null) mapper = BinaryContext.defaultNameMapper();

    return mapper.typeName(fullClsName);
  }
  /**
   * @return Expected hash code.
   * @param fullName Full name of type.
   */
  private int expectedHashCode(String fullName) {
    BinaryIdMapper idMapper = cfg.getBinaryConfiguration().getIdMapper();
    BinaryNameMapper nameMapper = cfg.getBinaryConfiguration().getNameMapper();

    if (idMapper == null) idMapper = BinaryContext.defaultIdMapper();

    if (nameMapper == null) nameMapper = BinaryContext.defaultNameMapper();

    return idMapper.typeId(nameMapper.typeName(fullName));
  }