Alexander,
Please find my comment at
I believe my Materials-x.x.x.jar library can solve your problem.