Integer (final RadComponent component) { //noinspection unchecked final Object parentValue = myParent.getValue(component); if (parentValue == null) return 0; try { return parentValue.getClass().getField(myFieldName).getInt(parentValue); } catch (Exception e) { throw new RuntimeException(e); } }