if (in == null) {
return;
}
final JAXBContext context = JAXBContext.newInstance(FeatureDescriptors.class);
final Unmarshaller unmarshaller = context.createUnmarshaller();
final FeatureDescriptors descriptors = (FeatureDescriptors) unmarshaller
.unmarshal(in);
cache.clear();
if (descriptors != null && descriptors.getFeatures() != null)
{
for (final FeatureDescriptor descriptor : descriptors.getFeatures())
{
cache.put(descriptor.getName(), descriptor);
}
}
}