Add getData method to IResultPart and change IResultPart to generic type.