Program: 137998
Project: 137998
Buggy source:
@Override public EObject eResolveProxy(InternalEObject proxy){
  if (!proxy.eClass().equals(PropertiesPackage.eINSTANCE.getByteArray())) {
    return super.eResolveProxy(proxy);
  }
  URI proxyUri=proxy.eProxyURI();
  URI resourceUri=proxyUri.trimFragment();
  if (eResource() == null) {
    return super.eResolveProxy(proxy);
  }
  ResourceSet resourceSet=eResource().getResourceSet();
  ByteArrayResource byteArrayResource=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI normalizedURI=theURIConverter.normalize(resourceUri);
  if ("String_Node_Str".equals(proxyUri.scheme()) && proxyUri.segmentCount() > 1 && "String_Node_Str".equals(proxyUri.segment(0))) {
    for (    Object element : resourceSet.getResources()) {
      Resource resource=(Resource)element;
      if (theURIConverter.normalize(resource.getURI()).equals(normalizedURI)) {
        byteArrayResource=(ByteArrayResource)resource;
      }
    }
    if (byteArrayResource == null) {
      byteArrayResource=new ByteArrayResource(resourceUri);
      resourceSet.getResources().add(byteArrayResource);
    }
    try {
      byteArrayResource.load(null);
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else {
    for (    Object element : resourceSet.getResources()) {
      Resource resource=(Resource)element;
      if (theURIConverter.normalize(resource.getURI()).equals(normalizedURI)) {
        byteArrayResource=(ByteArrayResource)resource;
      }
    }
  }
  if (byteArrayResource != null && byteArrayResource.isLoaded()) {
    EObject object=byteArrayResource.getEObject(proxyUri.fragment().toString());
    if (object != null) {
      return object;
    }
  }
  throw new UnsupportedOperationException();
}

Fixed version (ground truth):
@Override public EObject eResolveProxy(InternalEObject proxy){
  if (!proxy.eClass().equals(org.talend.core.model.properties.PropertiesPackage.eINSTANCE.getByteArray())) {
    return super.eResolveProxy(proxy);
  }
  URI proxyUri=proxy.eProxyURI();
  URI resourceUri=proxyUri.trimFragment();
  if (eResource() == null) {
    return super.eResolveProxy(proxy);
  }
  ResourceSet resourceSet=eResource().getResourceSet();
  ByteArrayResource byteArrayResource=null;
  URIConverter theURIConverter=resourceSet.getURIConverter();
  URI normalizedURI=theURIConverter.normalize(resourceUri);
  if ("String_Node_Str".equals(proxyUri.scheme()) && proxyUri.segmentCount() > 1 && "String_Node_Str".equals(proxyUri.segment(0))) {
    for (    Object element : resourceSet.getResources()) {
      Resource resource=(Resource)element;
      if (theURIConverter.normalize(resource.getURI()).equals(normalizedURI)) {
        byteArrayResource=(ByteArrayResource)resource;
      }
    }
    if (byteArrayResource == null) {
      byteArrayResource=new ByteArrayResource(resourceUri);
      resourceSet.getResources().add(byteArrayResource);
    }
    try {
      byteArrayResource.load(null);
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else {
    for (    Object element : resourceSet.getResources()) {
      Resource resource=(Resource)element;
      if (theURIConverter.normalize(resource.getURI()).equals(normalizedURI)) {
        byteArrayResource=(ByteArrayResource)resource;
      }
    }
  }
  if (byteArrayResource != null && byteArrayResource.isLoaded()) {
    EObject object=byteArrayResource.getEObject(proxyUri.fragment().toString());
    if (object != null) {
      return object;
    }
  }
  throw new UnsupportedOperationException();
}