MAPI, Stonecutter(Java heap crash)

Please fix the java heap crash!