Moved calling em.validate() into EntityMetadata constructor
Made EntityMetadata final