public static Object deserializeToObject(String encObj) throws IOException, ClassNotFoundException {
  Object obj=null;
  if (encObj != null && encObj.length() > 0) {
    obj=IOUtils.deserialise(Base64.decode(encObj),false);
  }
  return obj;
}

public static Object deserializeToObject ( String encObj ) throws IOException , ClassNotFoundException { Object obj = null ; if ( encObj != null && encObj . length ( ) > 0 ) { obj = IOUtils . deserialise ( Base64 . decode ( encObj ) , false ) ; } return obj ; }
deserialize a string back into the original object
