Adding function to get effective pom tree directly.