code: public <T extends UserProperty> T getProperty(Class<T> clazz) {
          for (UserProperty p : properties) {
              if (clazz.isInstance(p))
                  return clazz.cast(p);
          }
          return null;
      }
docs: Gets the specific property, or null.