code: private Class<?> retrieveRealServiceClass(Object service) {
          Class<?> serviceClass = service.getClass();
          Method realTypeMethod = null;
          try {
              realTypeMethod = serviceClass.getMethod("getRealUnproxiedType");
          } catch (NoSuchMethodException e) {
              // no problem this method does not have to exist
          }
          if (realTypeMethod != null) {
              try {
                  serviceClass = (Class<?>) realTypeMethod.invoke(service);
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
          return serviceClass;
      }
docs: TODO: OPENENGSB-1976
  
  This is a workaround for the mess with Aries JPA proxies.