code: @UsedByGeneratedCode
  	public static ReloadableType getReloadableType(int typeRegistryId, int typeId) {
  		if (GlobalConfiguration.verboseMode && log.isLoggable(Level.INFO)) {
  			log.info(
  					">TypeRegistry.getReloadableType(typeRegistryId=" + typeRegistryId + ",typeId=" + typeId + ")");
  		}
  		TypeRegistry typeRegistry = registryInstances[typeRegistryId].get();
  		if (typeRegistry == null) {
  			throw new IllegalStateException("Request to access registry id " + typeRegistryId
  					+ " but no registry with that id has been created");
  		}
  		ReloadableType reloadableType = typeRegistry.getReloadableType(typeId);
  		if (reloadableType == null) {
  			throw new IllegalStateException("The type registry " + typeRegistry + " does not know about type id "
  					+ typeId);
  		}
  		reloadableType.setResolved();
  		if (GlobalConfiguration.verboseMode && log.isLoggable(Level.INFO)) {
  			log.info("<TypeRegistry.getReloadableType(typeRegistryId=" + typeRegistryId + ",typeId=" + typeId
  					+ ") returning " + reloadableType);
  		}
  		reloadableType.createTypeAssociations();
  		return reloadableType;
  	}
docs: This method discovers the reloadable type instance for the registry and type id specified.
  
  @param typeRegistryId the type registry id
  @param typeId the type id
  @return the ReloadableType (if there is no ReloadableType an exception will be thrown)