Replaced the classMetaData by a className to avoid recursivity.