Fixed ProxyReferenceRepository which was forcing to have a getId.