code: public static String getXAResourceRecoverFlagString(int flag) {
          switch (flag) {
              case XAResource.TMENDRSCAN:
                  return "TMENDRSCAN (" + flag + ')'; 
  
              case XAResource.TMNOFLAGS:
                  return "TMNOFLAGS (" + flag + ')'; 
  
              case XAResource.TMSTARTRSCAN:
                  return "TMSTARTRSCAN (" + flag + ')'; 
  
              case XAResource.TMSTARTRSCAN + XAResource.TMENDRSCAN:
                  return "TMSTARTRSCAN + TMENDRSCAN (" + flag + ')'; 
  
          }
  
          return "UNKNOWN XA RESOURCE RECOVER FLAG (" + flag + ')'; 
      }
docs: Display the javax.xa.XAResource recover flag constant corresponding to the
  value supplied.
  
  @param level a valid javax.xa.XAResource recover flag constant.
  
  @return the name of the constant, or a string indicating the constant is unknown.