I've studied it, but it seems a bit confusing Is there nothing more descriptive?
Why are you asking this in the Scripting forum? Us scripters don't know anything about this. (Or we politely pretend to, so we can keep this part of the forum related to scripting.)
The SDK subforum is at InDesign SDK – but be warned. It seems to me your reasoning goes like "hey, this complicated thing looks very complicated. There must be an easy way to do this very complicated thing." You may want to forget about writing plugins until you've completed one or more dedicated IT courses, to get at least up to the level where you understand how difficult it is.