synchronized (byId) {
WeakReference ref = (WeakReference)byId.get(new Integer(nativeId));
EGLDisplayImpl display = ref != null ?
(EGLDisplayImpl)ref.get() : null;
if (display == null) {
return new EGLDisplayImpl(nativeId);
} else {
return display;
}
}