Change to private getTheme (For non valid compilation: IsSerializable problems on the ? or Object compilation)