ESDEV-2156 Create metadata validator

More abstract comment for interface, fixed copy paste from class.
ESDEV-2156 Create metadata validator

interface class name changed to be more generic