code: private static String getStringProperty(Function function, String propertyKey) {
          Object value = function.getProperty(propertyKey);
          return value instanceof String ? (String)value : "";
      }
docs: Return a string property of the function
  @param function
  @param propertyKey
  @return