code: public static Object realToObject(Package pkg, String type, String value) {
          if (StringHelper.isEmpty(value))
              return null;
          com.centurylink.mdw.variable.VariableTranslator trans = getTranslator(pkg, type);
          if (trans instanceof DocumentReferenceTranslator)
              return ((DocumentReferenceTranslator)trans).realToObject(value);
          else
              return trans.toObject(value);
      }
docs: Deserializes variable string values to runtime objects.
  
  @param pkg workflow package
  @param type variable type
  @param value string value
  @return deserialized object