create utiliy class for getMaxDirectMemory
fix documentation link