code: public Object get(Object obj, String propertyName) {
          try {
              if (obj != null && propertyName != null) {
                  return PropertyUtils.getNestedProperty(obj, propertyName);
              }
          } catch (NullPointerException e) {
          } catch (NestedNullException e) {
          } catch (Exception e) {
              // Now I don't like it.
              error(e);
              return "-undefined-";
          }
          return null;
      }
docs: Getter for an object property value
  
  @param obj The object
  @param propertyName The property
  @return The value of the property of the object