code: public static String from(int state) {
          switch (state) {
              case Bundle.ACTIVE:
                  return ACTIVE;
              case Bundle.INSTALLED:
                  return INSTALLED;
              case Bundle.RESOLVED:
                  return RESOLVED;
              case Bundle.STARTING:
                  return STARTING;
              case Bundle.STOPPING:
                  return STOPPING;
              case Bundle.UNINSTALLED:
                  return UNINSTALLED;
              default:
                  return "UNKNOWN (" + Integer.toString(state) + ")";
          }
      }
docs: Gets the String form of the given OSGi bundle state.
  
  @param state the state
  @return the string form.