Changed the classMetaData to a className to avoid recursivity.