code: public static SpecificErrorCondition getSpecificErrorCondition(StanzaError error) {
          // This method is implemented to provide an easy way of getting a packet
          // extension of the XMPPError.
          for (SpecificErrorCondition condition : SpecificErrorCondition.values()) {
              if (error.getExtension(condition.toString(),
                      AdHocCommandData.SpecificError.namespace) != null) {
                  return condition;
              }
          }
          return null;
      }
docs: Returns the specific condition of the <code>error</code> or <tt>null</tt> if the
  error doesn't have any.
  
  @param error the error the get the specific condition from.
  @return the specific condition of this error, or null if it doesn't have
  any.