try a simpler soultion:
It would be simpler if it was Java code, unfortunately it's isn't any part of the JDK I know of. It does look suspiciously like .NET code though.