We should separate he logic that pulls -Xmx from a string from the code that deals with HBase puts etc.
That way we can have a separate and clean method that can be simply unit tested.
-Xmx could have an optional k or m (for kilo or MB) argument right ?