Program: 48745
Project: 48745
Buggy source:
private void configureExtensionVService() throws Exception {
  ExtensionManager em=service.extensionManager;
  Extension us=em.findExtension(extKey);
  AuAssert.check(us != null);
  Description desc=new DescriptionImpl();
  desc.setLabel("String_Node_Str");
  desc.setSummary("String_Node_Str" + Configuration.getCmsInstanceId());
  us.setDescription(desc);
  us.setCompany("String_Node_Str");
  us.setShownInSolutionManager(true);
  ManagedEntityInfo info=new ManagedEntityInfoImpl();
  info.setType("String_Node_Str");
  info.setDescription("String_Node_Str");
  ManagedEntityInfo[] infos=new ManagedEntityInfo[1];
  infos[0]=info;
  us.setManagedEntityInfo(infos);
  Extension.ResourceInfo extensionResourceInfo=new ExtensionImpl.ResourceInfoImpl();
  extensionResourceInfo.setLocale("String_Node_Str");
  extensionResourceInfo.setModule("String_Node_Str");
  KeyValue localizedExt[]=new KeyValue[2];
  localizedExt[0]=new KeyValueImpl();
  localizedExt[0].setKey(us.getKey() + "String_Node_Str");
  localizedExt[0].setValue(us.getDescription().getLabel());
  localizedExt[1]=new KeyValueImpl();
  localizedExt[1].setKey(us.getKey() + "String_Node_Str");
  localizedExt[1].setValue(us.getDescription().getSummary());
  extensionResourceInfo.setData(localizedExt);
  Extension.ResourceInfo eventResourceInfo=new ExtensionImpl.ResourceInfoImpl();
  eventResourceInfo.setLocale("String_Node_Str");
  eventResourceInfo.setModule("String_Node_Str");
class KeyValueList extends ArrayList<KeyValue> {
    public void add(    String key,    String value){
      KeyValue pair=new KeyValueImpl();
      pair.setKey(key);
      pair.setValue(value);
      super.add(pair);
    }
  }
  ;
  KeyValueList resourceInfo=new KeyValueList();
  ArrayList<Extension.EventTypeInfo> eventTypes=new ArrayList<Extension.EventTypeInfo>();
  for (  EventSeverity severity : Event.EventSeverity.values()) {
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str",severity.name());
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    Extension.EventTypeInfo event=new ExtensionImpl.EventTypeInfoImpl();
    event.setEventID("String_Node_Str" + severity.name());
    event.setEventTypeSchema("String_Node_Str" + severity.name() + "String_Node_Str");
    eventTypes.add(event);
  }
  eventResourceInfo.setData(resourceInfo.toArray(new KeyValue[0]));
  us.setResourceList(new Extension.ResourceInfo[]{extensionResourceInfo,eventResourceInfo});
  us.setEventList(eventTypes.toArray(new Extension.EventTypeInfo[0]));
  us.setShownInSolutionManager(true);
  em.updateExtension(us);
}

Fixed version (ground truth):
private void configureExtensionVService() throws Exception {
  ExtensionManager em=service.extensionManager;
  Extension us=em.findExtension(extKey);
  AuAssert.check(us != null);
  Description desc=new DescriptionImpl();
  desc.setLabel("String_Node_Str");
  desc.setSummary("String_Node_Str" + Configuration.getCmsInstanceId());
  us.setDescription(desc);
  us.setCompany("String_Node_Str");
  us.setShownInSolutionManager(true);
  ExtendedProductInfo extInfo=new ExtendedProductInfoImpl();
  extInfo.setCompanyUrl("String_Node_Str");
  us.setExtendedProductInfo(extInfo);
  ManagedEntityInfo info=new ManagedEntityInfoImpl();
  info.setType("String_Node_Str");
  info.setDescription("String_Node_Str");
  ManagedEntityInfo[] infos=new ManagedEntityInfo[1];
  infos[0]=info;
  us.setManagedEntityInfo(infos);
  Extension.ResourceInfo extensionResourceInfo=new ExtensionImpl.ResourceInfoImpl();
  extensionResourceInfo.setLocale("String_Node_Str");
  extensionResourceInfo.setModule("String_Node_Str");
  KeyValue localizedExt[]=new KeyValue[2];
  localizedExt[0]=new KeyValueImpl();
  localizedExt[0].setKey(us.getKey() + "String_Node_Str");
  localizedExt[0].setValue(us.getDescription().getLabel());
  localizedExt[1]=new KeyValueImpl();
  localizedExt[1].setKey(us.getKey() + "String_Node_Str");
  localizedExt[1].setValue(us.getDescription().getSummary());
  extensionResourceInfo.setData(localizedExt);
  Extension.ResourceInfo eventResourceInfo=new ExtensionImpl.ResourceInfoImpl();
  eventResourceInfo.setLocale("String_Node_Str");
  eventResourceInfo.setModule("String_Node_Str");
class KeyValueList extends ArrayList<KeyValue> {
    public void add(    String key,    String value){
      KeyValue pair=new KeyValueImpl();
      pair.setKey(key);
      pair.setValue(value);
      super.add(pair);
    }
  }
  ;
  KeyValueList resourceInfo=new KeyValueList();
  ArrayList<Extension.EventTypeInfo> eventTypes=new ArrayList<Extension.EventTypeInfo>();
  for (  EventSeverity severity : Event.EventSeverity.values()) {
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str",severity.name());
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    resourceInfo.add("String_Node_Str" + severity.name() + "String_Node_Str","String_Node_Str");
    Extension.EventTypeInfo event=new ExtensionImpl.EventTypeInfoImpl();
    event.setEventID("String_Node_Str" + severity.name());
    event.setEventTypeSchema("String_Node_Str" + severity.name() + "String_Node_Str");
    eventTypes.add(event);
  }
  eventResourceInfo.setData(resourceInfo.toArray(new KeyValue[0]));
  us.setResourceList(new Extension.ResourceInfo[]{extensionResourceInfo,eventResourceInfo});
  us.setEventList(eventTypes.toArray(new Extension.EventTypeInfo[0]));
  us.setShownInSolutionManager(true);
  SolutionManagerInfo sm=new SolutionManagerInfoImpl();
  sm.setSmallIconUrl("String_Node_Str");
  us.setSolutionManagerInfo(sm);
  em.updateExtension(us);
}