Right now there's no direct capability to do so, except than comparing the property with the EntityProperties.getIdProperty