private boolean isValueChanged(Object newValue, Object currentValue) {
    return (newValue != null) && !newValue.equals(currentValue);
  }
Safely converts an id value to a string

@param id the value to convert
@return a string representation of the id
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserResourceProvider.java