I've got a couple of things to say.
First and foremost: Please learn Java before trying to make a Minecraft Forge mod. Java itself is hard to learn let alone trying to learn an extensive API like Forge.
Secondly: If you crash or an exception is thrown there is a lot of useful information inside the stacktrace. You should read it. If you don't know what it means google it. If that doesn't supply you with answers/enough information post the error.
Thirdly:
Why?
Why not just put this in the accept function?