I am using a interface projection in spring, the @Projection annotation has defined 2 classes for the type[], how can I check what class the projection corresponds to? When debugging the type is a Proxy from con.sun.proxy.Proxy so using instenceof doesn`t work, but in the debug view where it shows a json representation of the object it actually shows the specific type of the projection.