if (descriptorBytes != null) {
InputStream descriptorIn = new ByteArrayInputStream(descriptorBytes);
AdaptiveFeatureGenerator generator = null;
try {
generator = GeneratorFactory.create(descriptorIn, new FeatureGeneratorResourceProvider() {
public Object getResource(String key) {
if (artifactProvider != null) {
return artifactProvider.getArtifact(key);
}