I thought the following code located in components\gnutella-core\src\main\java\com\limegroup\gnutella\filters\ IPFilter.java loaded the hostiles.txt automatically if the file exits.
Code:
/** Constructs an IPFilter that automatically loads the content. */
@Inject
public LocalIPFilter(@Named("hostileFilter") IPFilter hostileNetworkFilter,
@Named("backgroundExecutor") ScheduledExecutorService ipLoader) {
this.hostileNetworkFilter = hostileNetworkFilter;
this.ipLoader = ipLoader;
File hostiles = new File(CommonUtils.getUserSettingsDir(), "hostiles.txt");
shouldLoadHostiles = hostiles.exists();
refreshHosts();
}