Only parse yaml data once to find class package and name