Hi, Sakit.
We usually don't mind to provide some guidance regarding custom scripts even to our Community users (as free support doesn't include custom scripts development topics), but it seems your project starts to involve a lot of in-depth knowledge of Gluu's codebase. In such cases we must to ask for a consultation from our developers, what we can't afford to do for free.
All Gluu source codes are available for our users to study them and usually it's enough to find any answer you may need, if your organization has its own staff experienced in the field. But if you think you could benefit from some first-hand and timely support, I would suggest to consider purchasing some paid support plan from us.