Element collect(ReportField reportField, ReportBuilder reportBuilder) {
PackageInfo info = pm.getPackageInfo();
if (info != null) {
switch (reportField) {
case APP_VERSION_NAME:
<BUG>return new SimpleElement(info.versionName);
</BUG>
case APP_VERSION_CODE:
<BUG>return new SimpleElement(Integer.toString(info.versionCode));
</BUG>
}

Element collect(ReportField reportField, ReportBuilder reportBuilder) {
PackageInfo info = pm.getPackageInfo();
if (info != null) {
switch (reportField) {
case APP_VERSION_NAME:
return new StringElement(info.versionName);
case APP_VERSION_CODE:
return new NumberElement(info.versionCode);
