This method does not belong in this class.  We should move it to an appropriate utility class.  ObjectUtil maybe?