title: Split the string to string array then split the array to hashmap in java or groovy
body: <p>I have string like below </p>
  
  <p>SUB_SYSTEM_ERROR@!@Error Getting from sub system@$@Record already Exists@!@Record Already Exists</p>
  
  <p>First I have to split the string with @$@. hten Array will be like </p>
  
  <p>SUB_SYSTEM_ERROR@!@Error Getting from sub system, Record already Exists@!@Record Already Exists</p>
  
  <p>Then I have split the array with @!@ and make to hashmap like below.</p>
  
  <p>(SUB_SYSTEM_ERROR, Error Getting from sub system)
  (Record already Exists, Record Already Exists)</p>
  
  <p>Please help on this either in groovy or java.</p>