Added entity heiararchy and resource xml