change behaviour of AbstractBeanProcessor.excludes to asReference
With the excludes property the AbstractBeanProcessor provides a means to omit specific CDM-Bean properties from being serialized. This feature which is frequently used (see /cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml) causes problems for users and machine clients using the service responses. The respective fields are completely omitted and thus indicating that this data is not existent. This can cause irritation and confusion. A much better solution would be to add the UUID of the excluded entity instead of completely excluding it. When implementing this improvement it must be assured that adding the UUID is not causing unwanted initializations of entities which could cause LazyInitializationExceptions. A good solution to avoid this problems could be to extend hibernate by a mechanism which always loads the uuid just as it is happening for the id without full initialization of the entity.