try {
inputStream = file.openInputStream();
final Object cls = configuration.getMetadataAdapter().createClassObject(inputStream);
scan(cls);
} catch (IOException e) {
throw new ReflectionsException("could not create class file from " + file.getName(), e);
} finally {
Utils.close(inputStream);
}
}