code: public Object getPropertyValue(Object objectToGet, String propertyPath) throws InvalidObjectReaderException {
  
          if (objectToGet == null || propertyPath == null) {
              throw new IllegalArgumentException("Given object/propertyname may not be null");
          }
          if (objectToGet.getClass() != entityClass) {
              throw new InvalidObjectReaderException("Class of target object does not correspond with entityclass of this reader.");
          }
  
          StringTokenizer tokenizer = new StringTokenizer(propertyPath, ".", false);
          return getPropertyValue(objectToGet, tokenizer);
      }
docs: Returns the value of the property with a given name from the given object
  
  @param objectToGet  The object from which the property value is to be retrieved
  @param propertyPath The dot-separated path of the property to retrieve. E.g. directly property: "name",
  sub property: "streetAddress.number"
  @return The value of the named property in the given object or null if the property can not
  be found
  @throws InvalidObjectReaderException If the class of the given object does not correspond with the entityclass
  of this reader
  @throws IllegalArgumentException     if the given objectToGet or propertyValue is null