I created the same topic earlier.
Short idea - work with these methods described in Platform Type spec.