try {
// Get a file pointer
- $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigInstance()->getConfigEntry('hostname_file'));
+ $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', $helperInstance->getConfigInstance()->getConfigEntry('hostname_file'));
// Read the file
- $rawData = trim($io->readFromFile());
+ $rawData = trim($fileInstance->readFromFile());
// Close the file
- $io->closeFile();
+ $fileInstance->closeFile();
// Extract hostname from it
$hostname = $helperInstance->extractHostnameFromRawData($rawData);