I menaged to figure it out. For those interested I'll post the solution. It's real easy. First tip don't use the developpers guide. The sdk sugested dosn't work.
Instead use the
commos e-id project. Use the
maven dependencies they talk about and build your method using the
sample code to build your methods and Tada... Done