This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Please give me a suggestion.
You'll find that you get better answers and faster answers when you ask where experts on the topic hang out.
I do recommend that you try and explain what you're attempting a little more plainly, however. I know WHAT you're trying to do - I just recently finished up working on something just like it. But your explanation of HOW you're trying to do it is confusing.
An IDE is no substitute for an Intelligent Developer.