Unable to enforce parent-child relationship while creating indexes thru Java API based Code